home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
You can browse this item here: electron.iff
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
66%
| dexvert
| Amiga 8-bit Sampled Voice (audio/amiga8svx)
| ext
| Supported |
66%
| dexvert
| IFF Amiga Contiguous Bitmap (image/iffACBM)
| ext
| Supported |
66%
| dexvert
| IFF Interleaved Bitmap Image (image/iffILBM)
| ext
| Supported |
66%
| dexvert
| IFF RGBN Image (image/iffRGBN)
| ext
| Supported |
1%
| dexvert
| DeLuxe Music CMUS (music/iffCMUS)
| ext
| Unsupported |
1%
| dexvert
| ORIGIN Systems IFF palette (other/originSystemsIFFPalette)
| ext
| Unsupported |
1%
| dexvert
| "The Sims" object (other/theSimsObject)
| ext
| Unsupported |
1%
| dexvert
| Starlancer Saved game (other/starlancerSavedGame)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From peter@sugar.hackercorp.com Tue Dec 11 20:33:09 1990", ASCII text
| default
| |
99%
| TrID
| E-Mail message (Var. 2)
| default
| |
0%
| TrID
| Bio-Rad Image(s) bitmap
| default (weak)
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| application/mbox
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 70 65 74 | 65 72 40 73 75 67 61 72 |From pet|er@sugar|
|00000010| 2e 68 61 63 6b 65 72 63 | 6f 72 70 2e 63 6f 6d 20 |.hackerc|orp.com |
|00000020| 54 75 65 20 44 65 63 20 | 31 31 20 32 30 3a 33 33 |Tue Dec |11 20:33|
|00000030| 3a 30 39 20 31 39 39 30 | 0a 46 72 6f 6d 3a 20 70 |:09 1990|.From: p|
|00000040| 65 74 65 72 40 73 75 67 | 61 72 2e 68 61 63 6b 65 |eter@sug|ar.hacke|
|00000050| 72 63 6f 72 70 2e 63 6f | 6d 20 28 50 65 74 65 72 |rcorp.co|m (Peter|
|00000060| 20 64 61 20 53 69 6c 76 | 61 29 0a 4e 65 77 73 67 | da Silv|a).Newsg|
|00000070| 72 6f 75 70 73 3a 20 61 | 6c 74 2e 62 69 6e 61 72 |roups: a|lt.binar|
|00000080| 69 65 73 2e 6d 75 6c 74 | 69 6d 65 64 69 61 0a 53 |ies.mult|imedia.S|
|00000090| 75 62 6a 65 63 74 3a 20 | 44 65 66 69 6e 69 74 69 |ubject: |Definiti|
|000000a0| 6f 6e 20 6f 66 20 45 6c | 65 63 74 72 6f 6e 69 63 |on of El|ectronic|
|000000b0| 20 41 72 74 73 20 49 46 | 46 20 66 6f 72 6d 61 74 | Arts IF|F format|
|000000c0| 0a 44 61 74 65 3a 20 31 | 30 20 44 65 63 20 39 30 |.Date: 1|0 Dec 90|
|000000d0| 20 31 32 3a 35 36 3a 33 | 36 20 47 4d 54 0a 52 65 | 12:56:3|6 GMT.Re|
|000000e0| 70 6c 79 2d 54 6f 3a 20 | 70 65 74 65 72 40 73 75 |ply-To: |peter@su|
|000000f0| 67 61 72 2e 68 61 63 6b | 65 72 63 6f 72 70 2e 63 |gar.hack|ercorp.c|
|00000100| 6f 6d 20 28 50 65 74 65 | 72 20 64 61 20 53 69 6c |om (Pete|r da Sil|
|00000110| 76 61 29 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |va).Orga|nization|
|00000120| 3a 20 53 75 67 61 72 20 | 4c 61 6e 64 20 55 6e 69 |: Sugar |Land Uni|
|00000130| 78 20 2d 20 48 6f 75 73 | 74 6f 6e 0a 0a 49 6e 20 |x - Hous|ton..In |
|00000140| 61 20 72 61 64 69 63 61 | 6c 20 6d 6f 76 65 2c 20 |a radica|l move, |
|00000150| 69 6e 66 6f 6d 61 74 69 | 6f 6e 20 69 6e 73 74 65 |infomati|on inste|
|00000160| 61 64 20 6f 66 20 66 6c | 61 6d 65 73 2e 0a 0a 44 |ad of fl|ames...D|
|00000170| 65 66 69 6e 69 74 69 6f | 6e 73 20 6f 66 20 74 68 |efinitio|ns of th|
|00000180| 65 20 45 6c 65 63 74 72 | 6f 6e 69 63 20 41 72 74 |e Electr|onic Art|
|00000190| 73 20 49 46 46 20 66 6f | 72 6d 61 74 73 20 66 6f |s IFF fo|rmats fo|
|000001a0| 72 20 74 65 78 74 2c 20 | 73 61 6d 70 6c 65 64 20 |r text, |sampled |
|000001b0| 73 6f 75 6e 64 73 2c 0a | 6d 75 73 69 63 61 6c 20 |sounds,.|musical |
|000001c0| 73 63 6f 72 65 73 2c 20 | 61 6e 64 20 69 6d 61 67 |scores, |and imag|
|000001d0| 65 73 2e 0a 0a 3a 20 54 | 68 69 73 20 61 72 63 68 |es...: T|his arch|
|000001e0| 69 76 65 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |ive cont|ains the|
|000001f0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 66 69 6c 65 73 | followi|ng files|
|00000200| 2e 2e 2e 0a 3a 20 27 38 | 73 76 78 27 0a 3a 20 27 |....: '8|svx'.: '|
|00000210| 65 61 2e 69 66 66 2e 38 | 35 27 0a 3a 20 27 66 74 |ea.iff.8|5'.: 'ft|
|00000220| 78 74 27 0a 3a 20 27 69 | 6c 62 6d 27 0a 3a 20 27 |xt'.: 'i|lbm'.: '|
|00000230| 73 6d 75 73 27 0a 3a 20 | 54 6f 20 65 78 74 72 61 |smus'.: |To extra|
|00000240| 63 74 20 74 68 65 6d 2c | 20 72 75 6e 20 74 68 65 |ct them,| run the|
|00000250| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 74 68 72 6f 75 | followi|ng throu|
|00000260| 67 68 20 2f 62 69 6e 2f | 73 68 0a 65 63 68 6f 20 |gh /bin/|sh.echo |
|00000270| 78 20 2d 20 38 73 76 78 | 0a 73 65 64 20 27 73 2f |x - 8svx|.sed 's/|
|00000280| 5e 58 2f 2f 27 20 3e 20 | 38 73 76 78 20 3c 3c 20 |^X//' > |8svx << |
|00000290| 27 2f 2f 45 4e 44 27 0a | 58 22 38 53 56 58 22 20 |'//END'.|X"8SVX" |
|000002a0| 49 46 46 20 38 2d 42 69 | 74 20 53 61 6d 70 6c 65 |IFF 8-Bi|t Sample|
|000002b0| 64 20 56 6f 69 63 65 0a | 58 0a 58 44 61 74 65 3a |d Voice.|X.XDate:|
|000002c0| 09 46 65 62 72 75 61 72 | 79 20 37 2c 20 31 39 38 |.Februar|y 7, 198|
|000002d0| 35 0a 58 46 72 6f 6d 3a | 09 53 74 65 76 65 20 48 |5.XFrom:|.Steve H|
|000002e0| 61 79 65 73 20 61 6e 64 | 20 4a 65 72 72 79 20 4d |ayes and| Jerry M|
|000002f0| 6f 72 72 69 73 6f 6e 2c | 20 45 6c 65 63 74 72 6f |orrison,| Electro|
|00000300| 6e 69 63 20 41 72 74 73 | 0a 58 53 74 61 74 75 73 |nic Arts|.XStatus|
|00000310| 3a 09 41 64 6f 70 74 65 | 64 0a 58 0a 58 31 2e 20 |:.Adopte|d.X.X1. |
|00000320| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 0a 58 0a 58 |Introduc|tion.X.X|
|00000330| 54 68 69 73 20 6d 65 6d | 6f 20 69 73 20 74 68 65 |This mem|o is the|
|00000340| 20 49 46 46 20 73 75 70 | 70 6c 65 6d 65 6e 74 20 | IFF sup|plement |
|00000350| 66 6f 72 20 46 4f 52 4d | 20 22 38 53 56 58 22 2e |for FORM| "8SVX".|
|00000360| 20 41 6e 20 38 53 56 58 | 20 69 73 20 61 6e 20 49 | An 8SVX| is an I|
|00000370| 46 46 20 0a 58 22 64 61 | 74 61 20 73 65 63 74 69 |FF .X"da|ta secti|
|00000380| 6f 6e 22 20 6f 72 20 22 | 46 4f 52 4d 22 20 28 77 |on" or "|FORM" (w|
|00000390| 68 69 63 68 20 63 61 6e | 20 62 65 20 61 6e 20 49 |hich can| be an I|
|000003a0| 46 46 20 66 69 6c 65 20 | 6f 72 20 61 20 70 61 72 |FF file |or a par|
|000003b0| 74 20 6f 66 20 6f 6e 65 | 29 20 0a 58 63 6f 6e 74 |t of one|) .Xcont|
|000003c0| 61 69 6e 69 6e 67 20 61 | 20 64 69 67 69 74 61 6c |aining a| digital|
|000003d0| 6c 79 20 73 61 6d 70 6c | 65 64 20 61 75 64 69 6f |ly sampl|ed audio|
|000003e0| 20 76 6f 69 63 65 20 63 | 6f 6e 73 69 73 74 69 6e | voice c|onsistin|
|000003f0| 67 20 6f 66 20 38 2d 62 | 69 74 20 73 61 6d 70 6c |g of 8-b|it sampl|
|00000400| 65 73 2e 20 0a 58 41 20 | 76 6f 69 63 65 20 63 61 |es. .XA |voice ca|
|00000410| 6e 20 62 65 20 61 20 6f | 6e 65 2d 73 68 6f 74 20 |n be a o|ne-shot |
|00000420| 73 6f 75 6e 64 20 6f 72 | 51 77 69 74 68 20 72 65 |sound or|Qwith re|
|00000430| 70 65 74 69 74 69 6f 6e | 20 61 6e 64 20 70 69 74 |petition| and pit|
|00000440| 63 68 20 73 63 61 6c 69 | 6e 67 51 61 20 0a 58 6d |ch scali|ngQa .Xm|
|00000450| 75 73 69 63 61 6c 20 69 | 6e 73 74 72 75 6d 65 6e |usical i|nstrumen|
|00000460| 74 2e 20 22 45 41 20 49 | 46 46 20 38 35 22 20 69 |t. "EA I|FF 85" i|
|00000470| 73 20 45 6c 65 63 74 72 | 6f 6e 69 63 20 41 72 74 |s Electr|onic Art|
|00000480| 73 27 20 73 74 61 6e 64 | 61 72 64 20 69 6e 74 65 |s' stand|ard inte|
|00000490| 72 63 68 61 6e 67 65 20 | 0a 58 66 69 6c 65 20 66 |rchange |.Xfile f|
|000004a0| 6f 72 6d 61 74 2e 20 5b | 53 65 65 20 22 45 41 20 |ormat. [|See "EA |
|000004b0| 49 46 46 20 38 35 22 20 | 53 74 61 6e 64 61 72 64 |IFF 85" |Standard|
|000004c0| 20 66 6f 72 20 49 6e 74 | 65 72 63 68 61 6e 67 65 | for Int|erchange|
|000004d0| 20 46 6f 72 6d 61 74 20 | 46 69 6c 65 73 2e 5d 0a | Format |Files.].|
|000004e0| 58 0a 58 54 68 65 20 38 | 53 56 58 20 66 6f 72 6d |X.XThe 8|SVX form|
|000004f0| 61 74 20 69 73 20 64 65 | 73 69 67 6e 65 64 20 66 |at is de|signed f|
|00000500| 6f 72 20 70 6c 61 79 62 | 61 63 6b 20 68 61 72 64 |or playb|ack hard|
|00000510| 77 61 72 65 20 74 68 61 | 74 20 75 73 65 73 20 38 |ware tha|t uses 8|
|00000520| 2d 62 69 74 20 0a 58 73 | 61 6d 70 6c 65 73 20 61 |-bit .Xs|amples a|
|00000530| 74 74 65 6e 75 61 74 65 | 64 20 62 79 20 61 20 76 |ttenuate|d by a v|
|00000540| 6f 6c 75 6d 65 20 63 6f | 6e 74 72 6f 6c 20 66 6f |olume co|ntrol fo|
|00000550| 72 20 67 6f 6f 64 20 6f | 76 65 72 61 6c 6c 20 73 |r good o|verall s|
|00000560| 69 67 6e 61 6c 2d 74 6f | 2d 6e 6f 69 73 65 20 0a |ignal-to|-noise .|
|00000570| 58 72 61 74 69 6f 2e 20 | 53 6f 20 61 20 46 4f 52 |Xratio. |So a FOR|
|00000580| 4d 20 38 53 56 58 20 73 | 74 6f 72 65 73 20 38 2d |M 8SVX s|tores 8-|
|00000590| 62 69 74 20 73 61 6d 70 | 6c 65 73 20 61 6e 64 20 |bit samp|les and |
|000005a0| 61 20 76 6f 6c 75 6d 65 | 20 6c 65 76 65 6c 2e 0a |a volume| level..|
|000005b0| 58 0a 58 41 20 73 69 6d | 69 6c 61 72 20 64 61 74 |X.XA sim|ilar dat|
|000005c0| 61 20 66 6f 72 6d 61 74 | 20 28 6f 72 20 74 77 6f |a format| (or two|
|000005d0| 29 20 77 69 6c 6c 20 62 | 65 20 6e 65 65 64 65 64 |) will b|e needed|
|000005e0| 20 66 6f 72 20 68 69 67 | 68 65 72 20 72 65 73 6f | for hig|her reso|
|000005f0| 6c 75 74 69 6f 6e 20 0a | 58 73 61 6d 70 6c 65 73 |lution .|Xsamples|
|00000600| 20 28 74 79 70 69 63 61 | 6c 6c 79 20 31 32 20 6f | (typica|lly 12 o|
|00000610| 72 20 31 36 20 62 69 74 | 73 29 2e 20 50 72 6f 70 |r 16 bit|s). Prop|
|00000620| 65 72 6c 79 20 63 6f 6e | 76 65 72 74 69 6e 67 20 |erly con|verting |
|00000630| 61 20 68 69 67 68 20 72 | 65 73 6f 6c 75 74 69 6f |a high r|esolutio|
|00000640| 6e 20 0a 58 73 61 6d 70 | 6c 65 20 64 6f 77 6e 20 |n .Xsamp|le down |
|00000650| 74 6f 20 38 20 62 69 74 | 73 20 72 65 71 75 69 72 |to 8 bit|s requir|
|00000660| 65 73 20 6f 6e 65 20 70 | 61 73 73 20 6f 76 65 72 |es one p|ass over|
|00000670| 20 74 68 65 20 64 61 74 | 61 20 74 6f 20 66 69 6e | the dat|a to fin|
|00000680| 64 20 74 68 65 20 0a 58 | 6d 69 6e 69 6d 75 6d 20 |d the .X|minimum |
|00000690| 61 6e 64 20 6d 61 78 69 | 6d 75 6d 20 76 61 6c 75 |and maxi|mum valu|
|000006a0| 65 73 20 61 6e 64 20 61 | 20 73 65 63 6f 6e 64 20 |es and a| second |
|000006b0| 70 61 73 73 20 74 6f 20 | 73 63 61 6c 65 20 65 61 |pass to |scale ea|
|000006c0| 63 68 20 73 61 6d 70 6c | 65 20 0a 58 69 6e 74 6f |ch sampl|e .Xinto|
|000006d0| 20 74 68 65 20 72 61 6e | 67 65 20 2d 31 32 38 20 | the ran|ge -128 |
|000006e0| 74 68 72 6f 75 67 68 20 | 31 32 37 2e 20 53 6f 20 |through |127. So |
|000006f0| 69 74 27 73 20 72 65 61 | 73 6f 6e 61 62 6c 65 20 |it's rea|sonable |
|00000700| 74 6f 20 73 74 6f 72 65 | 20 68 69 67 68 65 72 20 |to store| higher |
|00000710| 0a 58 72 65 73 6f 6c 75 | 74 69 6f 6e 20 64 61 74 |.Xresolu|tion dat|
|00000720| 61 20 69 6e 20 61 20 64 | 69 66 66 65 72 65 6e 74 |a in a d|ifferent|
|00000730| 20 46 4f 52 4d 20 74 79 | 70 65 20 61 6e 64 20 63 | FORM ty|pe and c|
|00000740| 6f 6e 76 65 72 74 20 62 | 65 74 77 65 65 6e 20 74 |onvert b|etween t|
|00000750| 68 65 6d 2e 0a 58 0a 58 | 46 6f 72 20 69 6e 73 74 |hem..X.X|For inst|
|00000760| 72 75 6d 65 6e 74 73 2c | 20 46 4f 52 4d 20 38 53 |ruments,| FORM 8S|
|00000770| 56 58 20 63 61 6e 20 72 | 65 63 6f 72 64 20 61 20 |VX can r|ecord a |
|00000780| 72 65 70 65 61 74 69 6e | 67 20 77 61 76 65 66 6f |repeatin|g wavefo|
|00000790| 72 6d 20 6f 70 74 69 6f | 6e 61 6c 6c 79 20 0a 58 |rm optio|nally .X|
|000007a0| 70 72 65 63 65 64 65 64 | 20 62 79 20 61 20 73 74 |preceded| by a st|
|000007b0| 61 72 74 75 70 20 74 72 | 61 6e 73 69 65 6e 74 20 |artup tr|ansient |
|000007c0| 77 61 76 65 66 6f 72 6d | 2e 20 54 68 65 73 65 20 |waveform|. These |
|000007d0| 74 77 6f 20 72 65 63 6f | 72 64 65 64 20 73 69 67 |two reco|rded sig|
|000007e0| 6e 61 6c 73 20 0a 58 63 | 61 6e 20 62 65 20 70 72 |nals .Xc|an be pr|
|000007f0| 65 2d 73 79 6e 74 68 65 | 73 69 7a 65 64 20 6f 72 |e-synthe|sized or|
|00000800| 20 73 61 6d 70 6c 65 64 | 20 66 72 6f 6d 20 61 6e | sampled| from an|
|00000810| 20 61 63 6f 75 73 74 69 | 63 20 69 6e 73 74 72 75 | acousti|c instru|
|00000820| 6d 65 6e 74 2e 20 46 6f | 72 20 0a 58 6d 61 6e 79 |ment. Fo|r .Xmany|
|00000830| 20 69 6e 73 74 72 75 6d | 65 6e 74 73 2c 20 74 68 | instrum|ents, th|
|00000840| 69 73 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |is repre|sentatio|
|00000850| 6e 20 69 73 20 63 6f 6d | 70 61 63 74 2e 20 46 4f |n is com|pact. FO|
|00000860| 52 4d 20 38 53 56 58 20 | 69 73 20 6c 65 73 73 20 |RM 8SVX |is less |
|00000870| 0a 58 70 72 61 63 74 69 | 63 61 6c 20 66 6f 72 20 |.Xpracti|cal for |
|00000880| 61 6e 20 69 6e 73 74 72 | 75 6d 65 6e 74 20 77 68 |an instr|ument wh|
|00000890| 6f 73 65 20 77 61 76 65 | 66 6f 72 6d 20 63 68 61 |ose wave|form cha|
|000008a0| 6e 67 65 73 20 66 72 6f | 6d 20 63 79 63 6c 65 20 |nges fro|m cycle |
|000008b0| 74 6f 20 63 79 63 6c 65 | 20 0a 58 6c 69 6b 65 20 |to cycle| .Xlike |
|000008c0| 61 20 70 6c 75 63 6b 65 | 64 20 73 74 72 69 6e 67 |a plucke|d string|
|000008d0| 2c 20 77 68 65 72 65 20 | 61 20 6c 6f 6e 67 20 73 |, where |a long s|
|000008e0| 61 6d 70 6c 65 20 69 73 | 20 6e 65 65 64 65 64 20 |ample is| needed |
|000008f0| 66 6f 72 20 61 63 63 75 | 72 61 74 65 20 0a 58 72 |for accu|rate .Xr|
|00000900| 65 73 75 6c 74 73 2e 0a | 58 0a 58 46 4f 52 4d 20 |esults..|X.XFORM |
|00000910| 38 53 56 58 20 63 61 6e | 20 73 74 6f 72 65 20 61 |8SVX can| store a|
|00000920| 6e 20 22 65 6e 76 65 6c | 6f 70 65 22 20 6f 72 20 |n "envel|ope" or |
|00000930| 22 61 6d 70 6c 69 74 75 | 64 65 20 63 6f 6e 74 6f |"amplitu|de conto|
|00000940| 75 72 22 20 74 6f 20 65 | 6e 72 69 63 68 65 6e 20 |ur" to e|nrichen |
|00000950| 0a 58 6d 75 73 69 63 61 | 6c 20 6e 6f 74 65 73 2e |.Xmusica|l notes.|
|00000960| 20 41 20 66 75 74 75 72 | 65 20 76 6f 69 63 65 20 | A futur|e voice |
|00000970| 46 4f 52 4d 20 63 6f 75 | 6c 64 20 61 6c 73 6f 20 |FORM cou|ld also |
|00000980| 73 74 6f 72 65 20 61 6d | 70 6c 69 74 75 64 65 2c |store am|plitude,|
|00000990| 20 66 72 65 71 75 65 6e | 63 79 2c 20 0a 58 61 6e | frequen|cy, .Xan|
|000009a0| 64 20 66 69 6c 74 65 72 | 20 6d 6f 64 75 6c 61 74 |d filter| modulat|
|000009b0| 69 6f 6e 73 2e 0a 58 0a | 58 46 4f 52 4d 20 38 53 |ions..X.|XFORM 8S|
|000009c0| 56 58 20 69 73 20 67 65 | 61 72 65 64 20 66 6f 72 |VX is ge|ared for|
|000009d0| 20 72 65 6c 61 74 69 76 | 65 6c 79 20 73 69 6d 70 | relativ|ely simp|
|000009e0| 6c 65 20 6d 75 73 69 63 | 61 6c 20 76 6f 69 63 65 |le music|al voice|
|000009f0| 73 2c 20 77 68 65 72 65 | 20 6f 6e 65 20 0a 58 77 |s, where| one .Xw|
|00000a00| 61 76 65 66 6f 72 6d 20 | 70 65 72 20 6f 63 74 61 |aveform |per octa|
|00000a10| 76 65 20 69 73 20 73 75 | 66 66 69 63 69 65 6e 74 |ve is su|fficient|
|00000a20| 2c 20 77 68 65 72 65 20 | 74 68 65 20 77 61 76 65 |, where |the wave|
|00000a30| 66 6f 72 6d 73 20 66 6f | 72 20 74 68 65 20 64 69 |forms fo|r the di|
|00000a40| 66 66 65 72 65 6e 74 20 | 0a 58 6f 63 74 61 76 65 |fferent |.Xoctave|
|00000a50| 73 20 66 6f 6c 6c 6f 77 | 73 20 61 20 66 61 63 74 |s follow|s a fact|
|00000a60| 6f 72 2d 6f 66 2d 74 77 | 6f 20 73 69 7a 65 20 72 |or-of-tw|o size r|
|00000a70| 75 6c 65 2c 20 61 6e 64 | 20 77 68 65 72 65 20 6f |ule, and| where o|
|00000a80| 6e 65 20 65 6e 76 65 6c | 6f 70 65 20 0a 58 69 73 |ne envel|ope .Xis|
|00000a90| 20 61 64 65 71 75 61 74 | 65 20 66 6f 72 20 61 6c | adequat|e for al|
|00000aa0| 6c 20 6f 63 74 61 76 65 | 73 2e 20 59 6f 75 20 63 |l octave|s. You c|
|00000ab0| 6f 75 6c 64 20 73 74 6f | 72 65 20 61 20 6d 6f 72 |ould sto|re a mor|
|00000ac0| 65 20 67 65 6e 65 72 61 | 6c 20 76 6f 69 63 65 20 |e genera|l voice |
|00000ad0| 0a 58 61 73 20 61 20 4c | 49 53 54 20 63 6f 6e 74 |.Xas a L|IST cont|
|00000ae0| 61 69 6e 69 6e 67 20 6f | 6e 65 20 6f 72 20 6d 6f |aining o|ne or mo|
|00000af0| 72 65 20 46 4f 52 4d 73 | 20 38 53 56 58 20 70 65 |re FORMs| 8SVX pe|
|00000b00| 72 20 6f 63 74 61 76 65 | 2e 20 41 20 66 75 74 75 |r octave|. A futu|
|00000b10| 72 65 20 76 6f 69 63 65 | 20 0a 58 46 4f 52 4d 20 |re voice| .XFORM |
|00000b20| 63 6f 75 6c 64 20 67 6f | 20 62 65 79 6f 6e 64 20 |could go| beyond |
|00000b30| 6f 6e 65 20 22 6f 6e 65 | 2d 73 68 6f 74 22 20 77 |one "one|-shot" w|
|00000b40| 61 76 65 66 6f 72 6d 20 | 61 6e 64 20 6f 6e 65 20 |aveform |and one |
|00000b50| 22 72 65 70 65 61 74 22 | 20 77 61 76 65 66 6f 72 |"repeat"| wavefor|
|00000b60| 6d 20 0a 58 70 65 72 20 | 6f 63 74 61 76 65 2e 0a |m .Xper |octave..|
|00000b70| 58 0a 58 53 65 63 74 69 | 6f 6e 20 32 20 64 65 66 |X.XSecti|on 2 def|
|00000b80| 69 6e 65 73 20 74 68 65 | 20 72 65 71 75 69 72 65 |ines the| require|
|00000b90| 64 20 70 72 6f 70 65 72 | 74 79 20 73 6f 75 6e 64 |d proper|ty sound|
|00000ba0| 20 68 65 61 64 65 72 20 | 22 56 48 44 52 22 2c 20 | header |"VHDR", |
|00000bb0| 6f 70 74 69 6f 6e 61 6c | 20 0a 58 70 72 6f 70 65 |optional| .Xprope|
|00000bc0| 72 74 69 65 73 20 6e 61 | 6d 65 20 22 4e 41 4d 45 |rties na|me "NAME|
|00000bd0| 22 2c 20 63 6f 70 79 72 | 69 67 68 74 20 22 28 63 |", copyr|ight "(c|
|00000be0| 29 4a 22 2c 20 61 6e 64 | 20 61 75 74 68 6f 72 20 |)J", and| author |
|00000bf0| 22 41 55 54 48 22 2c 20 | 74 68 65 20 6f 70 74 69 |"AUTH", |the opti|
|00000c00| 6f 6e 61 6c 20 0a 58 61 | 6e 6e 6f 74 61 74 69 6f |onal .Xa|nnotatio|
|00000c10| 6e 20 64 61 74 61 20 63 | 68 75 6e 6b 20 22 41 4e |n data c|hunk "AN|
|00000c20| 4e 4f 22 2c 20 74 68 65 | 20 72 65 71 75 69 72 65 |NO", the| require|
|00000c30| 64 20 64 61 74 61 20 63 | 68 75 6e 6b 20 22 42 4f |d data c|hunk "BO|
|00000c40| 44 59 22 2c 20 61 6e 64 | 20 0a 58 6f 70 74 69 6f |DY", and| .Xoptio|
|00000c50| 6e 61 6c 20 65 6e 76 65 | 6c 6f 70 65 20 63 68 75 |nal enve|lope chu|
|00000c60| 6e 6b 73 20 22 41 54 41 | 4b 22 20 61 6e 64 20 22 |nks "ATA|K" and "|
|00000c70| 52 4c 53 45 22 2e 20 54 | 68 65 73 65 20 61 72 65 |RLSE". T|hese are|
|00000c80| 20 74 68 65 20 22 73 74 | 61 6e 64 61 72 64 22 20 | the "st|andard" |
|00000c90| 0a 58 63 68 75 6e 6b 73 | 2e 20 53 70 65 63 69 61 |.Xchunks|. Specia|
|00000ca0| 6c 69 7a 65 64 20 63 68 | 75 6e 6b 73 20 66 6f 72 |lized ch|unks for|
|00000cb0| 20 70 72 69 76 61 74 65 | 20 6f 72 20 66 75 74 75 | private| or futu|
|00000cc0| 72 65 20 6e 65 65 64 73 | 20 63 61 6e 20 62 65 20 |re needs| can be |
|00000cd0| 61 64 64 65 64 20 0a 58 | 6c 61 74 65 72 2c 20 65 |added .X|later, e|
|00000ce0| 2e 67 2e 20 74 6f 20 68 | 6f 6c 64 20 61 20 66 72 |.g. to h|old a fr|
|00000cf0| 65 71 75 65 6e 63 79 20 | 63 6f 6e 74 6f 75 72 20 |equency |contour |
|00000d00| 6f 72 20 46 6f 75 72 69 | 65 72 20 73 65 72 69 65 |or Fouri|er serie|
|00000d10| 73 20 63 6f 65 66 66 69 | 63 69 65 6e 74 73 2e 20 |s coeffi|cients. |
|00000d20| 0a 58 54 68 65 20 38 53 | 56 58 20 73 79 6e 74 61 |.XThe 8S|VX synta|
|00000d30| 78 20 69 73 20 73 75 6d | 6d 61 72 69 7a 65 64 20 |x is sum|marized |
|00000d40| 69 6e 20 41 70 70 65 6e | 64 69 78 20 41 20 61 73 |in Appen|dix A as|
|00000d50| 20 61 20 72 65 67 75 6c | 61 72 20 65 78 70 72 65 | a regul|ar expre|
|00000d60| 73 73 69 6f 6e 20 0a 58 | 61 6e 64 20 69 6e 20 41 |ssion .X|and in A|
|00000d70| 70 70 65 6e 64 69 78 20 | 42 20 61 73 20 61 6e 20 |ppendix |B as an |
|00000d80| 65 78 61 6d 70 6c 65 20 | 62 6f 78 20 64 69 61 67 |example |box diag|
|00000d90| 72 61 6d 2e 20 41 70 70 | 65 6e 64 69 78 20 43 20 |ram. App|endix C |
|00000da0| 65 78 70 6c 61 69 6e 73 | 20 74 68 65 20 0a 58 6f |explains| the .Xo|
|00000db0| 70 74 69 6f 6e 61 6c 20 | 46 69 62 6f 6e 61 63 63 |ptional |Fibonacc|
|00000dc0| 69 2d 64 65 6c 74 61 20 | 63 6f 6d 70 72 65 73 73 |i-delta |compress|
|00000dd0| 69 6f 6e 20 61 6c 67 6f | 72 69 74 68 6d 2e 0a 58 |ion algo|rithm..X|
|00000de0| 0a 58 43 61 75 74 69 6f | 6e 3a 20 54 68 65 20 56 |.XCautio|n: The V|
|00000df0| 48 44 52 20 73 74 72 75 | 63 74 75 72 65 20 56 6f |HDR stru|cture Vo|
|00000e00| 69 63 65 38 48 65 61 64 | 65 72 20 63 68 61 6e 67 |ice8Head|er chang|
|00000e10| 65 64 20 73 69 6e 63 65 | 20 64 72 61 66 74 20 70 |ed since| draft p|
|00000e20| 72 6f 70 6f 73 61 6c 20 | 0a 58 23 34 21 20 54 68 |roposal |.X#4! Th|
|00000e30| 65 20 6e 65 77 20 73 74 | 72 75 63 74 75 72 65 20 |e new st|ructure |
|00000e40| 69 73 20 69 6e 63 6f 6d | 70 61 74 69 62 6c 65 20 |is incom|patible |
|00000e50| 77 69 74 68 20 74 68 65 | 20 64 72 61 66 74 20 76 |with the| draft v|
|00000e60| 65 72 73 69 6f 6e 2e 0a | 58 0a 58 0a 58 0a 58 52 |ersion..|X.X.X.XR|
|00000e70| 65 66 65 72 65 6e 63 65 | 3a 0a 58 0a 58 22 45 41 |eference|:.X.X"EA|
|00000e80| 20 49 46 46 20 38 35 22 | 20 53 74 61 6e 64 61 72 | IFF 85"| Standar|
|00000e90| 64 20 66 6f 72 20 49 6e | 74 65 72 63 68 61 6e 67 |d for In|terchang|
|00000ea0| 65 20 46 6f 72 6d 61 74 | 20 46 69 6c 65 73 20 64 |e Format| Files d|
|00000eb0| 65 73 63 72 69 62 65 73 | 20 74 68 65 20 75 6e 64 |escribes| the und|
|00000ec0| 65 72 6c 79 69 6e 67 20 | 0a 58 63 6f 6e 76 65 6e |erlying |.Xconven|
|00000ed0| 74 69 6f 6e 73 20 66 6f | 72 20 61 6c 6c 20 49 46 |tions fo|r all IF|
|00000ee0| 46 20 66 69 6c 65 73 2e | 0a 58 0a 58 41 6d 69 67 |F files.|.X.XAmig|
|00000ef0| 61 5b 74 6d 5d 20 69 73 | 20 61 20 74 72 61 64 65 |a[tm] is| a trade|
|00000f00| 6d 61 72 6b 20 6f 66 20 | 43 6f 6d 6d 6f 64 6f 72 |mark of |Commodor|
|00000f10| 65 2d 41 6d 69 67 61 2c | 20 49 6e 63 2e 0a 58 0a |e-Amiga,| Inc..X.|
|00000f20| 58 45 6c 65 63 74 72 6f | 6e 69 63 20 41 72 74 73 |XElectro|nic Arts|
|00000f30| 5b 74 6d 5d 20 69 73 20 | 61 20 74 72 61 64 65 6d |[tm] is |a tradem|
|00000f40| 61 72 6b 20 6f 66 20 45 | 6c 65 63 74 72 6f 6e 69 |ark of E|lectroni|
|00000f50| 63 20 41 72 74 73 2e 0a | 58 0a 58 4d 61 63 57 72 |c Arts..|X.XMacWr|
|00000f60| 69 74 65 5b 74 6d 5d 20 | 69 73 20 61 20 74 72 61 |ite[tm] |is a tra|
|00000f70| 64 65 6d 61 72 6b 20 6f | 66 20 41 70 70 6c 65 20 |demark o|f Apple |
|00000f80| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 0a 58 |Computer|, Inc..X|
|00000f90| 0a 58 0a 58 0a 58 32 2e | 20 53 74 61 6e 64 61 72 |.X.X.X2.| Standar|
|00000fa0| 64 20 44 61 74 61 20 61 | 6e 64 20 50 72 6f 70 65 |d Data a|nd Prope|
|00000fb0| 72 74 79 20 43 68 75 6e | 6b 73 0a 58 0a 58 46 4f |rty Chun|ks.X.XFO|
|00000fc0| 52 4d 20 38 53 56 58 20 | 73 74 6f 72 65 73 20 61 |RM 8SVX |stores a|
|00000fd0| 6c 6c 20 74 68 65 20 77 | 61 76 65 66 6f 72 6d 20 |ll the w|aveform |
|00000fe0| 64 61 74 61 20 69 6e 20 | 6f 6e 65 20 62 6f 64 79 |data in |one body|
|00000ff0| 20 63 68 75 6e 6b 20 22 | 42 4f 44 59 22 2e 20 49 | chunk "|BODY". I|
|00001000| 74 20 0a 58 73 74 6f 72 | 65 73 20 70 6c 61 79 62 |t .Xstor|es playb|
|00001010| 61 63 6b 20 70 61 72 61 | 6d 65 74 65 72 73 20 69 |ack para|meters i|
|00001020| 6e 20 74 68 65 20 72 65 | 71 75 69 72 65 64 20 68 |n the re|quired h|
|00001030| 65 61 64 65 72 20 63 68 | 75 6e 6b 20 22 56 48 44 |eader ch|unk "VHD|
|00001040| 52 22 2e 20 22 56 48 44 | 52 22 20 0a 58 61 6e 64 |R". "VHD|R" .Xand|
|00001050| 20 61 6e 79 20 6f 70 74 | 69 6f 6e 61 6c 20 70 72 | any opt|ional pr|
|00001060| 6f 70 65 72 74 79 20 63 | 68 75 6e 6b 73 20 22 4e |operty c|hunks "N|
|00001070| 41 4d 45 22 2c 20 22 28 | 63 29 4a 22 2c 20 61 6e |AME", "(|c)J", an|
|00001080| 64 20 22 41 55 54 48 22 | 20 6d 75 73 74 20 61 6c |d "AUTH"| must al|
|00001090| 6c 20 0a 58 61 70 70 65 | 61 72 20 62 65 66 6f 72 |l .Xappe|ar befor|
|000010a0| 65 20 74 68 65 20 42 4f | 44 59 20 63 68 75 6e 6b |e the BO|DY chunk|
|000010b0| 2e 20 41 6e 79 20 6f 66 | 20 74 68 65 73 65 20 70 |. Any of| these p|
|000010c0| 72 6f 70 65 72 74 69 65 | 73 20 6d 61 79 20 62 65 |ropertie|s may be|
|000010d0| 20 73 68 61 72 65 64 20 | 0a 58 6f 76 65 72 20 61 | shared |.Xover a|
|000010e0| 20 4c 49 53 54 20 6f 66 | 20 46 4f 52 4d 73 20 38 | LIST of| FORMs 8|
|000010f0| 53 56 58 20 62 79 20 70 | 75 74 74 69 6e 67 20 74 |SVX by p|utting t|
|00001100| 68 65 6d 20 69 6e 20 61 | 20 50 52 4f 50 20 38 53 |hem in a| PROP 8S|
|00001110| 56 58 2e 20 5b 53 65 65 | 20 22 45 41 20 0a 58 49 |VX. [See| "EA .XI|
|00001120| 46 46 20 38 35 22 20 53 | 74 61 6e 64 61 72 64 20 |FF 85" S|tandard |
|00001130| 66 6f 72 20 49 6e 74 65 | 72 63 68 61 6e 67 65 20 |for Inte|rchange |
|00001140| 46 6f 72 6d 61 74 20 46 | 69 6c 65 73 2e 5d 0a 58 |Format F|iles.].X|
|00001150| 0a 58 42 61 63 6b 67 72 | 6f 75 6e 64 0a 58 0a 58 |.XBackgr|ound.X.X|
|00001160| 54 68 65 72 65 20 61 72 | 65 20 74 77 6f 20 77 61 |There ar|e two wa|
|00001170| 79 73 20 74 6f 20 75 73 | 65 20 46 4f 52 4d 20 38 |ys to us|e FORM 8|
|00001180| 53 56 58 3a 20 61 73 20 | 61 20 6f 6e 65 2d 73 68 |SVX: as |a one-sh|
|00001190| 6f 74 20 73 61 6d 70 6c | 65 64 20 73 6f 75 6e 64 |ot sampl|ed sound|
|000011a0| 20 6f 72 20 0a 58 61 73 | 20 61 20 73 61 6d 70 6c | or .Xas| a sampl|
|000011b0| 65 64 20 6d 75 73 69 63 | 61 6c 20 69 6e 73 74 72 |ed music|al instr|
|000011c0| 75 6d 65 6e 74 20 74 68 | 61 74 20 70 6c 61 79 73 |ument th|at plays|
|000011d0| 20 22 6e 6f 74 65 73 22 | 2e 20 53 74 6f 72 69 6e | "notes"|. Storin|
|000011e0| 67 20 62 6f 74 68 20 6b | 69 6e 64 73 20 0a 58 6f |g both k|inds .Xo|
|000011f0| 66 20 73 6f 75 6e 64 73 | 20 69 6e 20 74 68 65 20 |f sounds| in the |
|00001200| 73 61 6d 65 20 6b 69 6e | 64 20 6f 66 20 46 4f 52 |same kin|d of FOR|
|00001210| 4d 20 6d 61 6b 65 73 20 | 69 74 20 65 61 73 79 20 |M makes |it easy |
|00001220| 74 6f 20 70 6c 61 79 20 | 61 20 6f 6e 65 2d 73 68 |to play |a one-sh|
|00001230| 6f 74 20 0a 58 73 6f 75 | 6e 64 20 61 73 20 61 20 |ot .Xsou|nd as a |
|00001240| 28 73 74 61 63 63 61 74 | 6f 29 20 69 6e 73 74 72 |(staccat|o) instr|
|00001250| 75 6d 65 6e 74 20 6f 72 | 20 61 6e 20 69 6e 73 74 |ument or| an inst|
|00001260| 72 75 6d 65 6e 74 20 61 | 73 20 61 20 28 6f 6e 65 |rument a|s a (one|
|00001270| 2d 6e 6f 74 65 29 20 0a | 58 73 6f 75 6e 64 2e 0a |-note) .|Xsound..|
|00001280| 58 0a 58 41 20 6f 6e 65 | 2d 73 68 6f 74 20 73 6f |X.XA one|-shot so|
|00001290| 75 6e 64 20 69 73 20 61 | 20 73 65 72 69 65 73 20 |und is a| series |
|000012a0| 6f 66 20 61 75 64 69 6f | 20 64 61 74 61 20 73 61 |of audio| data sa|
|000012b0| 6d 70 6c 65 73 20 77 69 | 74 68 20 61 20 6e 6f 6d |mples wi|th a nom|
|000012c0| 69 6e 61 6c 20 0a 58 70 | 6c 61 79 62 61 63 6b 20 |inal .Xp|layback |
|000012d0| 72 61 74 65 20 61 6e 64 | 20 61 6d 70 6c 69 74 75 |rate and| amplitu|
|000012e0| 64 65 2e 20 54 68 65 20 | 72 65 63 69 70 69 65 6e |de. The |recipien|
|000012f0| 74 20 70 72 6f 67 72 61 | 6d 20 63 61 6e 20 6f 70 |t progra|m can op|
|00001300| 74 69 6f 6e 61 6c 6c 79 | 20 0a 58 61 64 6a 75 73 |tionally| .Xadjus|
|00001310| 74 20 6f 72 20 6d 6f 64 | 75 6c 61 74 65 20 74 68 |t or mod|ulate th|
|00001320| 65 20 61 6d 70 6c 69 74 | 75 64 65 20 61 6e 64 20 |e amplit|ude and |
|00001330| 70 6c 61 79 62 61 63 6b | 20 64 61 74 61 20 72 61 |playback| data ra|
|00001340| 74 65 2e 0a 58 0a 58 46 | 6f 72 20 6d 75 73 69 63 |te..X.XF|or music|
|00001350| 61 6c 20 69 6e 73 74 72 | 75 6d 65 6e 74 73 2c 20 |al instr|uments, |
|00001360| 74 68 65 20 69 64 65 61 | 20 69 73 20 74 6f 20 73 |the idea| is to s|
|00001370| 74 6f 72 65 20 61 20 73 | 61 6d 70 6c 65 64 20 28 |tore a s|ampled (|
|00001380| 6f 72 20 70 72 65 2d 73 | 79 6e 74 68 65 73 69 7a |or pre-s|ynthesiz|
|00001390| 65 64 29 20 0a 58 77 61 | 76 65 66 6f 72 6d 20 74 |ed) .Xwa|veform t|
|000013a0| 68 61 74 20 77 69 6c 6c | 20 62 65 20 70 61 72 61 |hat will| be para|
|000013b0| 6d 65 74 65 72 69 7a 65 | 64 20 62 79 20 70 69 74 |meterize|d by pit|
|000013c0| 63 68 2c 20 64 75 72 61 | 74 69 6f 6e 2c 20 61 6e |ch, dura|tion, an|
|000013d0| 64 20 61 6d 70 6c 69 74 | 75 64 65 20 0a 58 74 6f |d amplit|ude .Xto|
|000013e0| 20 70 6c 61 79 20 65 61 | 63 68 20 22 6e 6f 74 65 | play ea|ch "note|
|000013f0| 22 2e 20 54 68 65 20 63 | 72 65 61 74 6f 72 20 6f |". The c|reator o|
|00001400| 66 20 74 68 65 20 46 4f | 52 4d 20 38 53 56 58 20 |f the FO|RM 8SVX |
|00001410| 63 61 6e 20 73 75 70 70 | 6c 79 20 61 20 77 61 76 |can supp|ly a wav|
|00001420| 65 66 6f 72 6d 20 0a 58 | 70 65 72 20 6f 63 74 61 |eform .X|per octa|
|00001430| 76 65 20 6f 76 65 72 20 | 61 20 72 61 6e 67 65 20 |ve over |a range |
|00001440| 6f 66 20 6f 63 74 61 76 | 65 73 20 66 6f 72 20 74 |of octav|es for t|
|00001450| 68 69 73 20 70 75 72 70 | 6f 73 65 2e 20 54 68 65 |his purp|ose. The|
|00001460| 20 69 6e 74 65 6e 74 20 | 69 73 20 0a 58 74 6f 20 | intent |is .Xto |
|00001470| 70 65 72 66 6f 72 6d 20 | 61 20 70 69 74 63 68 20 |perform |a pitch |
|00001480| 62 79 20 73 65 6c 65 63 | 74 69 6e 67 20 74 68 65 |by selec|ting the|
|00001490| 20 63 6c 6f 73 65 73 74 | 20 6f 63 74 61 76 65 27 | closest| octave'|
|000014a0| 73 20 77 61 76 65 66 6f | 72 6d 20 61 6e 64 20 0a |s wavefo|rm and .|
|000014b0| 58 73 63 61 6c 69 6e 67 | 20 74 68 65 20 70 6c 61 |Xscaling| the pla|
|000014c0| 79 62 61 63 6b 20 64 61 | 74 61 20 72 61 74 65 2e |yback da|ta rate.|
|000014d0| 20 41 6e 20 6f 70 74 69 | 6f 6e 61 6c 20 22 6f 6e | An opti|onal "on|
|000014e0| 65 2d 73 68 6f 74 22 20 | 77 61 76 65 66 6f 72 6d |e-shot" |waveform|
|000014f0| 20 73 75 70 70 6c 69 65 | 73 20 0a 58 61 6e 20 61 | supplie|s .Xan a|
|00001500| 72 62 69 74 72 61 72 79 | 20 73 74 61 72 74 75 70 |rbitrary| startup|
|00001510| 20 74 72 61 6e 73 69 65 | 6e 74 2c 20 74 68 65 6e | transie|nt, then|
|00001520| 20 61 20 22 72 65 70 65 | 61 74 22 20 77 61 76 65 | a "repe|at" wave|
|00001530| 66 6f 72 6d 20 69 73 20 | 69 74 65 72 61 74 65 64 |form is |iterated|
|00001540| 20 0a 58 61 73 20 6c 6f | 6e 67 20 61 73 20 6e 65 | .Xas lo|ng as ne|
|00001550| 63 65 73 73 61 72 79 20 | 74 6f 20 73 75 73 74 61 |cessary |to susta|
|00001560| 69 6e 20 74 68 65 20 6e | 6f 74 65 2e 0a 58 0a 58 |in the n|ote..X.X|
|00001570| 41 20 46 4f 52 4d 20 38 | 53 56 58 20 63 61 6e 20 |A FORM 8|SVX can |
|00001580| 61 6c 73 6f 20 73 74 6f | 72 65 20 61 6e 20 65 6e |also sto|re an en|
|00001590| 76 65 6c 6f 70 65 20 74 | 6f 20 6d 6f 64 75 6c 61 |velope t|o modula|
|000015a0| 74 65 20 74 68 65 20 77 | 61 76 65 66 6f 72 6d 2e |te the w|aveform.|
|000015b0| 20 45 6e 76 65 6c 6f 70 | 65 73 20 0a 58 61 72 65 | Envelop|es .Xare|
|000015c0| 20 6d 6f 73 74 6c 79 20 | 75 73 65 66 75 6c 20 66 | mostly |useful f|
|000015d0| 6f 72 20 76 61 72 69 61 | 62 6c 65 2d 64 75 72 61 |or varia|ble-dura|
|000015e0| 74 69 6f 6e 20 6e 6f 74 | 65 73 20 62 75 74 20 63 |tion not|es but c|
|000015f0| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 20 66 6f 72 |ould be |used for|
|00001600| 20 0a 58 6f 6e 65 2d 73 | 68 6f 74 20 73 6f 75 6e | .Xone-s|hot soun|
|00001610| 64 73 2c 20 74 6f 6f 2e | 0a 58 0a 58 54 68 65 20 |ds, too.|.X.XThe |
|00001620| 46 4f 52 4d 20 38 53 56 | 58 20 73 74 61 6e 64 61 |FORM 8SV|X standa|
|00001630| 72 64 20 68 61 73 20 73 | 6f 6d 65 20 72 65 73 74 |rd has s|ome rest|
|00001640| 72 69 63 74 69 6f 6e 73 | 2e 20 46 6f 72 20 65 78 |rictions|. For ex|
|00001650| 61 6d 70 6c 65 2c 20 65 | 61 63 68 20 6f 63 74 61 |ample, e|ach octa|
|00001660| 76 65 20 0a 58 6f 66 20 | 64 61 74 61 20 6d 75 73 |ve .Xof |data mus|
|00001670| 74 20 62 65 20 74 77 69 | 63 65 20 61 73 20 6c 6f |t be twi|ce as lo|
|00001680| 6e 67 20 61 73 20 74 68 | 65 20 6e 65 78 74 20 68 |ng as th|e next h|
|00001690| 69 67 68 65 72 20 6f 63 | 74 61 76 65 2e 20 4d 6f |igher oc|tave. Mo|
|000016a0| 73 74 20 73 6f 75 6e 64 | 20 0a 58 64 72 69 76 65 |st sound| .Xdrive|
|000016b0| 72 20 73 6f 66 74 77 61 | 72 65 20 61 6e 64 20 68 |r softwa|re and h|
|000016c0| 61 72 64 77 61 72 65 20 | 69 6d 70 6f 73 65 73 20 |ardware |imposes |
|000016d0| 61 64 64 69 74 69 6f 6e | 61 6c 20 72 65 73 74 72 |addition|al restr|
|000016e0| 69 63 74 69 6f 6e 73 2e | 20 45 2e 67 2e 20 0a 58 |ictions.| E.g. .X|
|000016f0| 74 68 65 20 41 6d 69 67 | 61 20 73 6f 75 6e 64 20 |the Amig|a sound |
|00001700| 68 61 72 64 77 61 72 65 | 20 72 65 71 75 69 72 65 |hardware| require|
|00001710| 73 20 61 6e 20 65 76 65 | 6e 20 6e 75 6d 62 65 72 |s an eve|n number|
|00001720| 20 6f 66 20 73 61 6d 70 | 6c 65 73 20 69 6e 20 65 | of samp|les in e|
|00001730| 61 63 68 20 0a 58 6f 6e | 65 2d 73 68 6f 74 20 61 |ach .Xon|e-shot a|
|00001740| 6e 64 20 72 65 70 65 61 | 74 20 77 61 76 65 66 6f |nd repea|t wavefo|
|00001750| 72 6d 2e 0a 58 0a 58 52 | 65 71 75 69 72 65 64 20 |rm..X.XR|equired |
|00001760| 50 72 6f 70 65 72 74 79 | 20 56 48 44 52 0a 58 0a |Property| VHDR.X.|
|00001770| 58 54 68 65 20 72 65 71 | 75 69 72 65 64 20 70 72 |XThe req|uired pr|
|00001780| 6f 70 65 72 74 79 20 22 | 56 48 44 52 22 20 68 6f |operty "|VHDR" ho|
|00001790| 6c 64 73 20 61 20 56 6f | 69 63 65 38 48 65 61 64 |lds a Vo|ice8Head|
|000017a0| 65 72 20 73 74 72 75 63 | 74 75 72 65 20 61 73 20 |er struc|ture as |
|000017b0| 64 65 66 69 6e 65 64 20 | 0a 58 69 6e 20 74 68 65 |defined |.Xin the|
|000017c0| 73 65 20 43 20 64 65 63 | 6c 61 72 61 74 69 6f 6e |se C dec|laration|
|000017d0| 73 20 61 6e 64 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s and fo|llowing |
|000017e0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 2e 20 54 |document|ation. T|
|000017f0| 68 69 73 20 73 74 72 75 | 63 74 75 72 65 20 0a 58 |his stru|cture .X|
|00001800| 68 6f 6c 64 73 20 74 68 | 65 20 70 6c 61 79 62 61 |holds th|e playba|
|00001810| 63 6b 20 70 61 72 61 6d | 65 74 65 72 73 20 66 6f |ck param|eters fo|
|00001820| 72 20 74 68 65 20 73 61 | 6d 70 6c 65 64 20 77 61 |r the sa|mpled wa|
|00001830| 76 65 66 6f 72 6d 73 20 | 69 6e 20 74 68 65 20 42 |veforms |in the B|
|00001840| 4f 44 59 20 0a 58 63 68 | 75 6e 6b 2e 20 28 53 65 |ODY .Xch|unk. (Se|
|00001850| 65 20 22 44 61 74 61 20 | 43 68 75 6e 6b 20 42 4f |e "Data |Chunk BO|
|00001860| 44 59 22 2c 20 62 65 6c | 6f 77 2c 20 66 6f 72 20 |DY", bel|ow, for |
|00001870| 74 68 65 20 73 74 6f 72 | 61 67 65 20 6c 61 79 6f |the stor|age layo|
|00001880| 75 74 20 6f 66 20 74 68 | 65 73 65 20 0a 58 77 61 |ut of th|ese .Xwa|
|00001890| 76 65 66 6f 72 6d 73 2e | 29 0a 58 0a 58 23 64 65 |veforms.|).X.X#de|
|000018a0| 66 69 6e 65 20 49 44 5f | 38 53 56 58 20 4d 61 6b |fine ID_|8SVX Mak|
|000018b0| 65 49 44 28 27 38 27 2c | 20 27 53 27 2c 20 27 56 |eID('8',| 'S', 'V|
|000018c0| 27 2c 20 27 58 27 29 0a | 58 23 64 65 66 69 6e 65 |', 'X').|X#define|
|000018d0| 20 49 44 5f 56 48 44 52 | 20 4d 61 6b 65 49 44 28 | ID_VHDR| MakeID(|
|000018e0| 27 56 27 2c 20 27 48 27 | 2c 20 27 44 27 2c 20 27 |'V', 'H'|, 'D', '|
|000018f0| 52 27 29 0a 58 0a 58 74 | 79 70 65 64 65 66 20 4c |R').X.Xt|ypedef L|
|00001900| 4f 4e 47 20 46 69 78 65 | 64 3b 09 0a 58 09 2f 2a |ONG Fixe|d;..X./*|
|00001910| 20 41 20 66 69 78 65 64 | 2d 70 6f 69 6e 74 20 76 | A fixed|-point v|
|00001920| 61 6c 75 65 2c 20 31 36 | 20 62 69 74 73 20 74 6f |alue, 16| bits to|
|00001930| 20 74 68 65 20 6c 65 66 | 74 20 6f 66 20 74 68 65 | the lef|t of the|
|00001940| 20 70 6f 69 6e 74 20 61 | 6e 64 20 31 36 20 0a 58 | point a|nd 16 .X|
|00001950| 09 20 2a 20 74 6f 20 74 | 68 65 20 72 69 67 68 74 |. * to t|he right|
|00001960| 2e 20 41 20 46 69 78 65 | 64 20 69 73 20 61 20 6e |. A Fixe|d is a n|
|00001970| 75 6d 62 65 72 20 6f 66 | 20 32 31 36 74 68 73 2c |umber of| 216ths,|
|00001980| 20 69 2e 65 2e 20 36 35 | 35 33 36 74 68 73 2e 09 | i.e. 65|536ths..|
|00001990| 2a 2f 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 55 6e |*/.X.X#d|efine Un|
|000019a0| 69 74 79 20 30 78 31 30 | 30 30 30 4c 09 2f 2a 20 |ity 0x10|000L./* |
|000019b0| 55 6e 69 74 79 20 3d 20 | 46 69 78 65 64 20 31 2e |Unity = |Fixed 1.|
|000019c0| 30 20 3d 20 6d 61 78 69 | 6d 75 6d 20 76 6f 6c 75 |0 = maxi|mum volu|
|000019d0| 6d 65 09 2a 2f 0a 58 0a | 58 2f 2a 20 73 43 6f 6d |me.*/.X.|X/* sCom|
|000019e0| 70 72 65 73 73 69 6f 6e | 3a 20 43 68 6f 69 63 65 |pression|: Choice|
|000019f0| 20 6f 66 20 63 6f 6d 70 | 72 65 73 73 69 6f 6e 20 | of comp|ression |
|00001a00| 61 6c 67 6f 72 69 74 68 | 6d 20 61 70 70 6c 69 65 |algorith|m applie|
|00001a10| 64 20 74 6f 20 74 68 65 | 20 73 61 6d 70 6c 65 73 |d to the| samples|
|00001a20| 2e 20 2a 2f 20 0a 58 0a | 58 23 64 65 66 69 6e 65 |. */ .X.|X#define|
|00001a30| 20 73 43 6d 70 4e 6f 6e | 65 20 20 20 20 20 20 20 | sCmpNon|e |
|00001a40| 30 09 2f 2a 20 6e 6f 74 | 20 63 6f 6d 70 72 65 73 |0./* not| compres|
|00001a50| 73 65 64 09 2a 2f 0a 58 | 23 64 65 66 69 6e 65 20 |sed.*/.X|#define |
|00001a60| 73 43 6d 70 46 69 62 44 | 65 6c 74 61 20 20 20 31 |sCmpFibD|elta 1|
|00001a70| 09 2f 2a 20 46 69 62 6f | 6e 61 63 63 69 2d 64 65 |./* Fibo|nacci-de|
|00001a80| 6c 74 61 20 65 6e 63 6f | 64 69 6e 67 20 28 41 70 |lta enco|ding (Ap|
|00001a90| 70 65 6e 64 69 78 20 43 | 29 20 20 2a 2f 20 0a 58 |pendix C|) */ .X|
|00001aa0| 0a 58 2f 2a 20 43 61 6e | 20 62 65 20 6d 6f 72 65 |.X/* Can| be more|
|00001ab0| 20 6b 69 6e 64 73 20 69 | 6e 20 74 68 65 20 66 75 | kinds i|n the fu|
|00001ac0| 74 75 72 65 2e 09 2a 2f | 0a 58 0a 58 74 79 70 65 |ture..*/|.X.Xtype|
|00001ad0| 64 65 66 20 73 74 72 75 | 63 74 20 7b 0a 58 09 55 |def stru|ct {.X.U|
|00001ae0| 4c 4f 4e 47 20 6f 6e 65 | 53 68 6f 74 48 69 53 61 |LONG one|ShotHiSa|
|00001af0| 6d 70 6c 65 73 2c 09 2f | 2a 20 23 20 73 61 6d 70 |mples,./|* # samp|
|00001b00| 6c 65 73 20 69 6e 20 74 | 68 65 20 68 69 67 68 20 |les in t|he high |
|00001b10| 6f 63 74 61 76 65 20 31 | 2d 73 68 6f 74 20 70 61 |octave 1|-shot pa|
|00001b20| 72 74 20 2a 2f 0a 58 20 | 20 20 20 20 20 20 20 72 |rt */.X | r|
|00001b30| 65 70 65 61 74 48 69 53 | 61 6d 70 6c 65 73 2c 09 |epeatHiS|amples,.|
|00001b40| 2f 2a 20 23 20 73 61 6d | 70 6c 65 73 20 69 6e 20 |/* # sam|ples in |
|00001b50| 74 68 65 20 68 69 67 68 | 20 6f 63 74 61 76 65 20 |the high| octave |
|00001b60| 72 65 70 65 61 74 20 70 | 61 72 74 20 2a 2f 0a 58 |repeat p|art */.X|
|00001b70| 20 20 20 20 20 20 20 20 | 73 61 6d 70 6c 65 73 50 | |samplesP|
|00001b80| 65 72 48 69 43 79 63 6c | 65 3b 09 2f 2a 20 23 20 |erHiCycl|e;./* # |
|00001b90| 73 61 6d 70 6c 65 73 2f | 63 79 63 6c 65 20 69 6e |samples/|cycle in|
|00001ba0| 20 68 69 67 68 20 6f 63 | 74 61 76 65 2c 20 65 6c | high oc|tave, el|
|00001bb0| 73 65 20 30 20 20 20 2a | 2f 0a 58 09 55 57 4f 52 |se 0 *|/.X.UWOR|
|00001bc0| 44 20 73 61 6d 70 6c 65 | 73 50 65 72 53 65 63 3b |D sample|sPerSec;|
|00001bd0| 09 2f 2a 20 64 61 74 61 | 20 73 61 6d 70 6c 69 6e |./* data| samplin|
|00001be0| 67 20 72 61 74 65 09 2a | 2f 0a 58 09 55 42 59 54 |g rate.*|/.X.UBYT|
|00001bf0| 45 20 63 74 4f 63 74 61 | 76 65 2c 09 09 2f 2a 20 |E ctOcta|ve,../* |
|00001c00| 23 20 6f 63 74 61 76 65 | 73 20 6f 66 20 77 61 76 |# octave|s of wav|
|00001c10| 65 66 6f 72 6d 73 09 2a | 2f 0a 58 20 20 20 20 20 |eforms.*|/.X |
|00001c20| 20 09 73 43 6f 6d 70 72 | 65 73 73 69 6f 6e 3b 09 | .sCompr|ession;.|
|00001c30| 09 2f 2a 20 64 61 74 61 | 20 63 6f 6d 70 72 65 73 |./* data| compres|
|00001c40| 73 69 6f 6e 20 74 65 63 | 68 6e 69 71 75 65 20 75 |sion tec|hnique u|
|00001c50| 73 65 64 09 2a 2f 0a 58 | 09 46 69 78 65 64 20 76 |sed.*/.X|.Fixed v|
|00001c60| 6f 6c 75 6d 65 3b 09 09 | 2f 2a 20 70 6c 61 79 62 |olume;..|/* playb|
|00001c70| 61 63 6b 20 76 6f 6c 75 | 6d 65 20 66 72 6f 6d 20 |ack volu|me from |
|00001c80| 30 20 74 6f 20 55 6e 69 | 74 79 20 28 66 75 6c 6c |0 to Uni|ty (full|
|00001c90| 20 0a 58 09 09 09 09 20 | 2a 20 76 6f 6c 75 6d 65 | .X.... |* volume|
|00001ca0| 29 2e 20 4d 61 70 20 74 | 68 69 73 20 76 61 6c 75 |). Map t|his valu|
|00001cb0| 65 20 69 6e 74 6f 20 74 | 68 65 20 6f 75 74 70 75 |e into t|he outpu|
|00001cc0| 74 20 0a 58 09 09 09 09 | 20 2a 20 68 61 72 64 77 |t .X....| * hardw|
|00001cd0| 61 72 65 27 73 20 64 79 | 6e 61 6d 69 63 20 72 61 |are's dy|namic ra|
|00001ce0| 6e 67 65 2e 09 2a 2f 0a | 58 09 7d 20 56 6f 69 63 |nge..*/.|X.} Voic|
|00001cf0| 65 38 48 65 61 64 65 72 | 3b 0a 58 0a 58 5b 49 6d |e8Header|;.X.X[Im|
|00001d00| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 64 65 74 |plementa|tion det|
|00001d10| 61 69 6c 73 2e 20 46 69 | 65 6c 64 73 20 61 72 65 |ails. Fi|elds are|
|00001d20| 20 66 69 6c 65 64 20 69 | 6e 20 74 68 65 20 6f 72 | filed i|n the or|
|00001d30| 64 65 72 20 73 68 6f 77 | 6e 2e 20 54 68 65 20 0a |der show|n. The .|
|00001d40| 58 55 42 59 54 45 20 66 | 69 65 6c 64 73 20 61 72 |XUBYTE f|ields ar|
|00001d50| 65 20 62 79 74 65 2d 70 | 61 63 6b 65 64 20 28 32 |e byte-p|acked (2|
|00001d60| 20 70 65 72 20 31 36 2d | 62 69 74 20 77 6f 72 64 | per 16-|bit word|
|00001d70| 29 2e 20 4d 61 6b 65 49 | 44 20 69 73 20 61 20 43 |). MakeI|D is a C|
|00001d80| 20 6d 61 63 72 6f 20 0a | 58 64 65 66 69 6e 65 64 | macro .|Xdefined|
|00001d90| 20 69 6e 20 74 68 65 20 | 6d 61 69 6e 20 49 46 46 | in the |main IFF|
|00001da0| 20 64 6f 63 75 6d 65 6e | 74 20 61 6e 64 20 69 6e | documen|t and in|
|00001db0| 20 74 68 65 20 73 6f 75 | 72 63 65 20 66 69 6c 65 | the sou|rce file|
|00001dc0| 20 49 46 46 2e 68 2e 5d | 0a 58 0a 58 41 20 46 4f | IFF.h.]|.X.XA FO|
|00001dd0| 52 4d 20 38 53 56 58 20 | 68 6f 6c 64 73 20 77 61 |RM 8SVX |holds wa|
|00001de0| 76 65 66 6f 72 6d 20 64 | 61 74 61 20 66 6f 72 20 |veform d|ata for |
|00001df0| 6f 6e 65 20 6f 72 20 6d | 6f 72 65 20 6f 63 74 61 |one or m|ore octa|
|00001e00| 76 65 73 2c 20 65 61 63 | 68 20 63 6f 6e 74 61 69 |ves, eac|h contai|
|00001e10| 6e 69 6e 67 20 0a 58 61 | 20 6f 6e 65 2d 73 68 6f |ning .Xa| one-sho|
|00001e20| 74 20 70 61 72 74 20 61 | 6e 64 20 61 20 72 65 70 |t part a|nd a rep|
|00001e30| 65 61 74 20 70 61 72 74 | 2e 20 54 68 65 20 66 69 |eat part|. The fi|
|00001e40| 65 6c 64 73 20 6f 6e 65 | 53 68 6f 74 48 69 53 61 |elds one|ShotHiSa|
|00001e50| 6d 70 6c 65 73 20 61 6e | 64 20 0a 58 72 65 70 65 |mples an|d .Xrepe|
|00001e60| 61 74 48 69 53 61 6d 70 | 6c 65 73 20 74 65 6c 6c |atHiSamp|les tell|
|00001e70| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 61 | the num|ber of a|
|00001e80| 75 64 69 6f 20 73 61 6d | 70 6c 65 73 20 69 6e 20 |udio sam|ples in |
|00001e90| 74 68 65 20 74 77 6f 20 | 70 61 72 74 73 20 0a 58 |the two |parts .X|
|00001ea0| 6f 66 20 74 68 65 20 68 | 69 67 68 65 73 74 20 66 |of the h|ighest f|
|00001eb0| 72 65 71 75 65 6e 63 79 | 20 6f 63 74 61 76 65 2e |requency| octave.|
|00001ec0| 20 45 61 63 68 20 73 75 | 63 63 65 73 73 69 76 65 | Each su|ccessive|
|00001ed0| 20 28 6c 6f 77 65 72 20 | 66 72 65 71 75 65 6e 63 | (lower |frequenc|
|00001ee0| 79 29 20 0a 58 6f 63 74 | 61 76 65 20 63 6f 6e 74 |y) .Xoct|ave cont|
|00001ef0| 61 69 6e 73 20 74 77 69 | 63 65 20 61 73 20 6d 61 |ains twi|ce as ma|
|00001f00| 6e 79 20 64 61 74 61 20 | 73 61 6d 70 6c 65 73 20 |ny data |samples |
|00001f10| 69 6e 20 62 6f 74 68 20 | 69 74 73 20 6f 6e 65 2d |in both |its one-|
|00001f20| 73 68 6f 74 20 61 6e 64 | 20 0a 58 72 65 70 65 61 |shot and| .Xrepea|
|00001f30| 74 20 70 61 72 74 73 2e | 20 4f 6e 65 20 6f 66 20 |t parts.| One of |
|00001f40| 74 68 65 73 65 20 74 77 | 6f 20 70 61 72 74 73 20 |these tw|o parts |
|00001f50| 63 61 6e 20 62 65 20 65 | 6d 70 74 79 20 61 63 72 |can be e|mpty acr|
|00001f60| 6f 73 73 20 61 6c 6c 20 | 6f 63 74 61 76 65 73 2e |oss all |octaves.|
|00001f70| 0a 58 0a 58 4e 6f 74 65 | 3a 20 4d 6f 73 74 20 61 |.X.XNote|: Most a|
|00001f80| 75 64 69 6f 20 6f 75 74 | 70 75 74 20 68 61 72 64 |udio out|put hard|
|00001f90| 77 61 72 65 20 61 6e 64 | 20 73 6f 66 74 77 61 72 |ware and| softwar|
|00001fa0| 65 20 68 61 73 20 6c 69 | 6d 69 74 61 74 69 6f 6e |e has li|mitation|
|00001fb0| 73 2e 20 54 68 65 20 0a | 58 41 6d 69 67 61 20 63 |s. The .|XAmiga c|
|00001fc0| 6f 6d 70 75 74 65 72 27 | 73 20 73 6f 75 6e 64 20 |omputer'|s sound |
|00001fd0| 68 61 72 64 77 61 72 65 | 20 72 65 71 75 69 72 65 |hardware| require|
|00001fe0| 73 20 74 68 61 74 20 61 | 6c 6c 20 6f 6e 65 2d 73 |s that a|ll one-s|
|00001ff0| 68 6f 74 20 61 6e 64 20 | 72 65 70 65 61 74 20 0a |hot and |repeat .|
|00002000| 58 70 61 72 74 73 20 68 | 61 76 65 20 65 76 65 6e |Xparts h|ave even|
|00002010| 20 6e 75 6d 62 65 72 73 | 20 6f 66 20 73 61 6d 70 | numbers| of samp|
|00002020| 6c 65 73 2e 20 41 6d 69 | 67 61 20 73 6f 75 6e 64 |les. Ami|ga sound|
|00002030| 20 64 72 69 76 65 72 20 | 73 6f 66 74 77 61 72 65 | driver |software|
|00002040| 20 77 6f 75 6c 64 20 0a | 58 68 61 76 65 20 74 6f | would .|Xhave to|
|00002050| 20 61 64 6a 75 73 74 20 | 61 6e 20 6f 64 64 2d 73 | adjust |an odd-s|
|00002060| 69 7a 65 64 20 77 61 76 | 65 66 6f 72 6d 2c 20 69 |ized wav|eform, i|
|00002070| 67 6e 6f 72 65 20 61 6e | 20 6f 64 64 2d 73 69 7a |gnore an| odd-siz|
|00002080| 65 64 20 6c 6f 77 65 73 | 74 20 6f 63 74 61 76 65 |ed lowes|t octave|
|00002090| 2c 20 0a 58 6f 72 20 69 | 67 6e 6f 72 65 20 6f 64 |, .Xor i|gnore od|
|000020a0| 64 20 46 4f 52 4d 73 20 | 38 53 56 58 20 61 6c 74 |d FORMs |8SVX alt|
|000020b0| 6f 67 65 74 68 65 72 2e | 20 53 6f 6d 65 20 6f 74 |ogether.| Some ot|
|000020c0| 68 65 72 20 6f 75 74 70 | 75 74 20 64 65 76 69 63 |her outp|ut devic|
|000020d0| 65 73 20 72 65 71 75 69 | 72 65 20 0a 58 61 6c 6c |es requi|re .Xall|
|000020e0| 20 73 61 6d 70 6c 65 20 | 73 69 7a 65 73 20 74 6f | sample |sizes to|
|000020f0| 20 62 65 20 70 6f 77 65 | 72 73 20 6f 66 20 74 77 | be powe|rs of tw|
|00002100| 6f 2e 0a 58 0a 58 54 68 | 65 20 66 69 65 6c 64 20 |o..X.XTh|e field |
|00002110| 73 61 6d 70 6c 65 73 50 | 65 72 48 69 43 79 63 6c |samplesP|erHiCycl|
|00002120| 65 20 74 65 6c 6c 73 20 | 74 68 65 20 6e 75 6d 62 |e tells |the numb|
|00002130| 65 72 20 6f 66 20 73 61 | 6d 70 6c 65 73 2f 63 79 |er of sa|mples/cy|
|00002140| 63 6c 65 20 69 6e 20 74 | 68 65 20 0a 58 68 69 67 |cle in t|he .Xhig|
|00002150| 68 65 73 74 20 66 72 65 | 71 75 65 6e 63 79 20 6f |hest fre|quency o|
|00002160| 63 74 61 76 65 20 6f 66 | 20 64 61 74 61 2c 20 6f |ctave of| data, o|
|00002170| 72 20 65 6c 73 65 20 30 | 20 66 6f 72 20 22 75 6e |r else 0| for "un|
|00002180| 6b 6e 6f 77 6e 22 2e 20 | 45 61 63 68 20 73 75 63 |known". |Each suc|
|00002190| 63 65 73 73 69 76 65 20 | 0a 58 28 6c 6f 77 65 72 |cessive |.X(lower|
|000021a0| 20 66 72 65 71 75 65 6e | 63 79 29 20 6f 63 74 61 | frequen|cy) octa|
|000021b0| 76 65 20 63 6f 6e 74 61 | 69 6e 73 20 74 77 69 63 |ve conta|ins twic|
|000021c0| 65 20 61 73 20 6d 61 6e | 79 20 73 61 6d 70 6c 65 |e as man|y sample|
|000021d0| 73 2f 63 79 63 6c 65 2e | 20 54 68 65 20 0a 58 73 |s/cycle.| The .Xs|
|000021e0| 61 6d 70 6c 65 73 50 65 | 72 48 69 43 79 63 6c 65 |amplesPe|rHiCycle|
|000021f0| 20 76 61 6c 75 65 20 69 | 73 20 6e 65 65 64 65 64 | value i|s needed|
|00002200| 20 74 6f 20 63 6f 6d 70 | 75 74 65 20 74 68 65 20 | to comp|ute the |
|00002210| 64 61 74 61 20 72 61 74 | 65 20 66 6f 72 20 61 20 |data rat|e for a |
|00002220| 64 65 73 69 72 65 64 20 | 0a 58 70 6c 61 79 62 61 |desired |.Xplayba|
|00002230| 63 6b 20 70 69 74 63 68 | 2e 0a 58 0a 58 41 63 74 |ck pitch|..X.XAct|
|00002240| 75 61 6c 6c 79 2c 20 73 | 61 6d 70 6c 65 73 50 65 |ually, s|amplesPe|
|00002250| 72 48 69 43 79 63 6c 65 | 20 69 73 20 61 6e 20 61 |rHiCycle| is an a|
|00002260| 76 65 72 61 67 65 20 6e | 75 6d 62 65 72 20 6f 66 |verage n|umber of|
|00002270| 20 73 61 6d 70 6c 65 73 | 2f 63 79 63 6c 65 2e 20 | samples|/cycle. |
|00002280| 0a 58 49 66 20 74 68 65 | 20 6f 6e 65 2d 73 68 6f |.XIf the| one-sho|
|00002290| 74 20 70 61 72 74 20 63 | 6f 6e 74 61 69 6e 73 20 |t part c|ontains |
|000022a0| 70 69 74 63 68 20 62 65 | 6e 64 73 2c 20 73 74 6f |pitch be|nds, sto|
|000022b0| 72 65 20 74 68 65 20 73 | 61 6d 70 6c 65 73 2f 63 |re the s|amples/c|
|000022c0| 79 63 6c 65 20 0a 58 6f | 66 20 74 68 65 20 72 65 |ycle .Xo|f the re|
|000022d0| 70 65 61 74 20 70 61 72 | 74 20 69 6e 20 73 61 6d |peat par|t in sam|
|000022e0| 70 6c 65 73 50 65 72 48 | 69 43 79 63 6c 65 2e 20 |plesPerH|iCycle. |
|000022f0| 54 68 65 20 64 69 76 69 | 73 69 6f 6e 20 72 65 70 |The divi|sion rep|
|00002300| 65 61 74 48 69 53 61 6d | 70 6c 65 73 2f 73 61 6d |eatHiSam|ples/sam|
|00002310| 70 6c 65 73 50 65 0a 58 | 72 48 69 43 79 63 6c 65 |plesPe.X|rHiCycle|
|00002320| 20 73 68 6f 75 6c 64 20 | 79 69 65 6c 64 20 61 6e | should |yield an|
|00002330| 20 69 6e 74 65 67 65 72 | 20 6e 75 6d 62 65 72 20 | integer| number |
|00002340| 6f 66 20 63 79 63 6c 65 | 73 2e 20 28 57 68 65 6e |of cycle|s. (When|
|00002350| 20 74 68 65 20 72 65 70 | 65 61 74 20 0a 58 77 61 | the rep|eat .Xwa|
|00002360| 76 65 66 6f 72 6d 20 69 | 73 20 72 65 70 65 61 74 |veform i|s repeat|
|00002370| 65 64 2c 20 61 20 70 61 | 72 74 69 61 6c 20 63 79 |ed, a pa|rtial cy|
|00002380| 63 6c 65 20 77 6f 75 6c | 64 20 63 6f 6d 65 20 6f |cle woul|d come o|
|00002390| 75 74 20 61 73 20 61 20 | 68 69 67 68 65 72 2d 66 |ut as a |higher-f|
|000023a0| 72 65 71 75 65 6e 63 79 | 20 0a 58 63 79 63 6c 65 |requency| .Xcycle|
|000023b0| 20 77 69 74 68 20 61 20 | 22 63 6c 69 63 6b 22 2e | with a |"click".|
|000023c0| 29 0a 58 0a 58 4d 6f 72 | 65 20 6c 69 6d 69 74 61 |).X.XMor|e limita|
|000023d0| 74 69 6f 6e 73 3a 20 53 | 6f 6d 65 20 41 6d 69 67 |tions: S|ome Amig|
|000023e0| 61 20 6d 75 73 69 63 20 | 64 72 69 76 65 72 73 20 |a music |drivers |
|000023f0| 72 65 71 75 69 72 65 20 | 73 61 6d 70 6c 65 73 50 |require |samplesP|
|00002400| 65 72 48 69 43 79 63 6c | 65 20 0a 58 74 6f 20 62 |erHiCycl|e .Xto b|
|00002410| 65 20 61 20 70 6f 77 65 | 72 20 6f 66 20 74 77 6f |e a powe|r of two|
|00002420| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 70 6c 61 | in orde|r to pla|
|00002430| 79 20 74 68 65 20 46 4f | 52 4d 20 38 53 56 58 20 |y the FO|RM 8SVX |
|00002440| 61 73 20 61 20 6d 75 73 | 69 63 61 6c 20 69 6e 73 |as a mus|ical ins|
|00002450| 74 72 75 6d 65 6e 74 20 | 0a 58 69 6e 20 74 75 6e |trument |.Xin tun|
|00002460| 65 2e 20 54 68 65 79 20 | 6d 61 79 20 65 76 65 6e |e. They |may even|
|00002470| 20 61 73 73 75 6d 65 20 | 73 61 6d 70 6c 65 73 50 | assume |samplesP|
|00002480| 65 72 48 69 43 79 63 6c | 65 20 69 73 20 61 20 70 |erHiCycl|e is a p|
|00002490| 61 72 74 69 63 75 6c 61 | 72 20 70 6f 77 65 72 20 |articula|r power |
|000024a0| 0a 58 6f 66 20 74 77 6f | 20 77 69 74 68 6f 75 74 |.Xof two| without|
|000024b0| 20 63 68 65 63 6b 69 6e | 67 2e 20 28 49 66 20 73 | checkin|g. (If s|
|000024c0| 61 6d 70 6c 65 73 50 65 | 72 48 69 43 79 63 6c 65 |amplesPe|rHiCycle|
|000024d0| 20 69 73 20 64 69 66 66 | 65 72 65 6e 74 20 62 79 | is diff|erent by|
|000024e0| 20 61 20 66 61 63 74 6f | 72 20 0a 58 6f 66 20 74 | a facto|r .Xof t|
|000024f0| 77 6f 2c 20 74 68 65 20 | 69 6e 73 74 72 75 6d 65 |wo, the |instrume|
|00002500| 6e 74 20 77 69 6c 6c 20 | 6a 75 73 74 20 62 65 20 |nt will |just be |
|00002510| 70 6c 61 79 65 64 20 61 | 6e 20 6f 63 74 61 76 65 |played a|n octave|
|00002520| 20 74 6f 6f 20 6c 6f 77 | 20 6f 72 20 68 69 67 68 | too low| or high|
|00002530| 2e 29 0a 58 0a 58 54 68 | 65 20 66 69 65 6c 64 20 |.).X.XTh|e field |
|00002540| 73 61 6d 70 6c 65 73 50 | 65 72 53 65 63 20 67 69 |samplesP|erSec gi|
|00002550| 76 65 73 20 74 68 65 20 | 73 6f 75 6e 64 20 73 61 |ves the |sound sa|
|00002560| 6d 70 6c 69 6e 67 20 72 | 61 74 65 2e 20 41 20 70 |mpling r|ate. A p|
|00002570| 72 6f 67 72 61 6d 20 6d | 61 79 20 0a 58 61 64 6a |rogram m|ay .Xadj|
|00002580| 75 73 74 20 74 68 69 73 | 20 74 6f 20 61 63 68 69 |ust this| to achi|
|00002590| 65 76 65 20 66 72 65 71 | 75 65 6e 63 79 20 73 68 |eve freq|uency sh|
|000025a0| 69 66 74 73 20 6f 72 20 | 76 61 72 79 20 69 74 20 |ifts or |vary it |
|000025b0| 64 79 6e 61 6d 69 63 61 | 6c 6c 79 20 74 6f 20 0a |dynamica|lly to .|
|000025c0| 58 61 63 68 69 65 76 65 | 20 70 69 74 63 68 20 62 |Xachieve| pitch b|
|000025d0| 65 6e 64 73 20 61 6e 64 | 20 76 69 62 72 61 74 6f |ends and| vibrato|
|000025e0| 2e 20 41 20 70 72 6f 67 | 72 61 6d 20 74 68 61 74 |. A prog|ram that|
|000025f0| 20 70 6c 61 79 73 20 61 | 20 46 4f 52 4d 20 38 53 | plays a| FORM 8S|
|00002600| 56 58 20 0a 58 61 73 20 | 61 20 6d 75 73 69 63 61 |VX .Xas |a musica|
|00002610| 6c 20 69 6e 73 74 72 75 | 6d 65 6e 74 20 77 6f 75 |l instru|ment wou|
|00002620| 6c 64 20 69 67 6e 6f 72 | 65 20 73 61 6d 70 6c 65 |ld ignor|e sample|
|00002630| 73 50 65 72 53 65 63 20 | 61 6e 64 20 73 65 6c 65 |sPerSec |and sele|
|00002640| 63 74 20 61 20 70 6c 61 | 79 62 61 63 6b 20 0a 58 |ct a pla|yback .X|
|00002650| 72 61 74 65 20 66 6f 72 | 20 65 61 63 68 20 6d 75 |rate for| each mu|
|00002660| 73 69 63 61 6c 20 70 69 | 74 63 68 2e 0a 58 0a 58 |sical pi|tch..X.X|
|00002670| 54 68 65 20 66 69 65 6c | 64 20 63 74 4f 63 74 61 |The fiel|d ctOcta|
|00002680| 76 65 20 74 65 6c 6c 73 | 20 68 6f 77 20 6d 61 6e |ve tells| how man|
|00002690| 79 20 6f 63 74 61 76 65 | 73 20 6f 66 20 64 61 74 |y octave|s of dat|
|000026a0| 61 20 61 72 65 20 73 74 | 6f 72 65 64 20 69 6e 20 |a are st|ored in |
|000026b0| 74 68 65 20 0a 58 42 4f | 44 59 20 63 68 75 6e 6b |the .XBO|DY chunk|
|000026c0| 2e 20 53 65 65 20 22 44 | 61 74 61 20 43 68 75 6e |. See "D|ata Chun|
|000026d0| 6b 20 42 4f 44 59 22 2c | 20 62 65 6c 6f 77 2c 20 |k BODY",| below, |
|000026e0| 66 6f 72 20 74 68 65 20 | 6c 61 79 6f 75 74 20 6f |for the |layout o|
|000026f0| 66 20 74 68 65 20 6f 63 | 74 61 76 65 73 2e 0a 58 |f the oc|taves..X|
|00002700| 0a 58 54 68 65 20 66 69 | 65 6c 64 20 73 43 6f 6d |.XThe fi|eld sCom|
|00002710| 70 72 65 73 73 69 6f 6e | 20 69 6e 64 69 63 61 74 |pression| indicat|
|00002720| 65 73 20 74 68 65 20 63 | 6f 6d 70 72 65 73 73 69 |es the c|ompressi|
|00002730| 6f 6e 20 73 63 68 65 6d | 65 2c 20 69 66 20 61 6e |on schem|e, if an|
|00002740| 79 2c 20 74 68 61 74 20 | 0a 58 77 61 73 20 61 70 |y, that |.Xwas ap|
|00002750| 70 6c 69 65 64 20 74 6f | 20 74 68 65 20 65 6e 74 |plied to| the ent|
|00002760| 69 72 65 20 73 65 74 20 | 6f 66 20 64 61 74 61 20 |ire set |of data |
|00002770| 73 61 6d 70 6c 65 73 20 | 73 74 6f 72 65 64 20 69 |samples |stored i|
|00002780| 6e 20 74 68 65 20 42 4f | 44 59 20 63 68 75 6e 6b |n the BO|DY chunk|
|00002790| 2e 20 0a 58 54 68 69 73 | 20 66 69 65 6c 64 20 73 |. .XThis| field s|
|000027a0| 68 6f 75 6c 64 20 63 6f | 6e 74 61 69 6e 20 6f 6e |hould co|ntain on|
|000027b0| 65 20 6f 66 20 74 68 65 | 20 76 61 6c 75 65 73 20 |e of the| values |
|000027c0| 64 65 66 69 6e 65 64 20 | 61 62 6f 76 65 2e 20 4f |defined |above. O|
|000027d0| 66 20 63 6f 75 72 73 65 | 2c 20 0a 58 74 68 65 20 |f course|, .Xthe |
|000027e0| 6d 61 74 63 68 69 6e 67 | 20 64 65 63 6f 6d 70 72 |matching| decompr|
|000027f0| 65 73 73 69 6f 6e 20 61 | 6c 67 6f 72 69 74 68 6d |ession a|lgorithm|
|00002800| 20 6d 75 73 74 20 62 65 | 20 61 70 70 6c 69 65 64 | must be| applied|
|00002810| 20 74 6f 20 74 68 65 20 | 42 4f 44 59 20 64 61 74 | to the |BODY dat|
|00002820| 61 20 0a 58 62 65 66 6f | 72 65 20 74 68 65 20 73 |a .Xbefo|re the s|
|00002830| 6f 75 6e 64 20 63 61 6e | 20 62 65 20 70 6c 61 79 |ound can| be play|
|00002840| 65 64 2e 20 28 54 68 65 | 20 46 69 62 6f 6e 61 63 |ed. (The| Fibonac|
|00002850| 63 69 2d 64 65 6c 74 61 | 20 65 6e 63 6f 64 69 6e |ci-delta| encodin|
|00002860| 67 20 73 63 68 65 6d 65 | 20 0a 58 73 43 6d 70 46 |g scheme| .XsCmpF|
|00002870| 69 62 44 65 6c 74 61 20 | 69 73 20 64 65 73 63 72 |ibDelta |is descr|
|00002880| 69 62 65 64 20 69 6e 20 | 41 70 70 65 6e 64 69 78 |ibed in |Appendix|
|00002890| 20 43 2e 29 20 4e 6f 74 | 65 20 74 68 61 74 20 74 | C.) Not|e that t|
|000028a0| 68 65 20 77 68 6f 6c 65 | 20 73 65 72 69 65 73 20 |he whole| series |
|000028b0| 0a 58 6f 66 20 64 61 74 | 61 20 73 61 6d 70 6c 65 |.Xof dat|a sample|
|000028c0| 73 20 69 73 20 63 6f 6d | 70 72 65 73 73 65 64 20 |s is com|pressed |
|000028d0| 61 73 20 61 20 75 6e 69 | 74 2e 0a 58 0a 58 54 68 |as a uni|t..X.XTh|
|000028e0| 65 20 66 69 65 6c 64 20 | 76 6f 6c 75 6d 65 20 67 |e field |volume g|
|000028f0| 69 76 65 73 20 61 6e 20 | 6f 76 65 72 61 6c 6c 20 |ives an |overall |
|00002900| 70 6c 61 79 62 61 63 6b | 20 76 6f 6c 75 6d 65 20 |playback| volume |
|00002910| 66 6f 72 20 74 68 65 20 | 77 61 76 65 66 6f 72 6d |for the |waveform|
|00002920| 73 20 0a 58 28 61 6c 6c | 20 6f 63 74 61 76 65 73 |s .X(all| octaves|
|00002930| 29 2e 20 49 74 20 6c 65 | 74 73 20 74 68 65 20 38 |). It le|ts the 8|
|00002940| 2d 62 69 74 20 64 61 74 | 61 20 73 61 6d 70 6c 65 |-bit dat|a sample|
|00002950| 73 20 75 73 65 20 74 68 | 65 20 66 75 6c 6c 20 72 |s use th|e full r|
|00002960| 61 6e 67 65 20 2d 31 32 | 38 20 0a 58 74 68 72 6f |ange -12|8 .Xthro|
|00002970| 75 67 68 20 31 32 37 20 | 66 6f 72 20 67 6f 6f 64 |ugh 127 |for good|
|00002980| 20 73 69 67 6e 61 6c 2d | 74 6f 2d 6e 6f 69 73 65 | signal-|to-noise|
|00002990| 20 72 61 74 69 6f 20 61 | 6e 64 20 62 65 20 61 74 | ratio a|nd be at|
|000029a0| 74 65 6e 75 61 74 65 64 | 20 6f 6e 20 70 6c 61 79 |tenuated| on play|
|000029b0| 62 61 63 6b 20 0a 58 74 | 6f 20 74 68 65 20 64 65 |back .Xt|o the de|
|000029c0| 73 69 72 65 64 20 6c 65 | 76 65 6c 2e 20 54 68 65 |sired le|vel. The|
|000029d0| 20 70 6c 61 79 62 61 63 | 6b 20 70 72 6f 67 72 61 | playbac|k progra|
|000029e0| 6d 20 73 68 6f 75 6c 64 | 20 6d 75 6c 74 69 70 6c |m should| multipl|
|000029f0| 79 20 74 68 69 73 20 76 | 61 6c 75 65 20 0a 58 62 |y this v|alue .Xb|
|00002a00| 79 20 61 20 22 76 6f 6c | 75 6d 65 20 63 6f 6e 74 |y a "vol|ume cont|
|00002a10| 72 6f 6c 22 20 61 6e 64 | 20 70 65 72 68 61 70 73 |rol" and| perhaps|
|00002a20| 20 62 79 20 61 20 70 6c | 61 79 62 61 63 6b 20 65 | by a pl|ayback e|
|00002a30| 6e 76 65 6c 6f 70 65 20 | 28 73 65 65 20 41 54 41 |nvelope |(see ATA|
|00002a40| 4b 20 0a 58 61 6e 64 20 | 52 4c 53 45 2c 20 62 65 |K .Xand |RLSE, be|
|00002a50| 6c 6f 77 29 2e 0a 58 0a | 58 52 65 63 6f 72 64 69 |low)..X.|XRecordi|
|00002a60| 6e 67 20 61 20 6f 6e 65 | 2d 73 68 6f 74 20 73 6f |ng a one|-shot so|
|00002a70| 75 6e 64 2e 20 54 6f 20 | 73 74 6f 72 65 20 61 20 |und. To |store a |
|00002a80| 6f 6e 65 2d 73 68 6f 74 | 20 73 6f 75 6e 64 20 69 |one-shot| sound i|
|00002a90| 6e 20 61 20 46 4f 52 4d | 20 38 53 56 58 2c 20 0a |n a FORM| 8SVX, .|
|00002aa0| 58 73 65 74 20 6f 6e 65 | 53 68 6f 74 48 69 53 61 |Xset one|ShotHiSa|
|00002ab0| 6d 70 6c 65 73 20 3d 20 | 6e 75 6d 62 65 72 20 6f |mples = |number o|
|00002ac0| 66 20 73 61 6d 70 6c 65 | 73 2c 20 72 65 70 65 61 |f sample|s, repea|
|00002ad0| 74 48 69 53 61 6d 70 6c | 65 73 20 3d 20 30 20 2c |tHiSampl|es = 0 ,|
|00002ae0| 20 0a 58 73 61 6d 70 6c | 65 73 50 65 72 48 69 43 | .Xsampl|esPerHiC|
|00002af0| 79 63 6c 65 20 3d 20 30 | 2c 20 73 61 6d 70 6c 65 |ycle = 0|, sample|
|00002b00| 73 50 65 72 53 65 63 20 | 3d 20 73 61 6d 70 6c 69 |sPerSec |= sampli|
|00002b10| 6e 67 20 72 61 74 65 2c | 20 61 6e 64 20 63 74 4f |ng rate,| and ctO|
|00002b20| 63 74 61 76 65 20 3d 20 | 31 2e 20 0a 58 53 63 61 |ctave = |1. .XSca|
|00002b30| 6c 65 20 74 68 65 20 73 | 69 67 6e 61 6c 20 61 6d |le the s|ignal am|
|00002b40| 70 6c 69 74 75 64 65 20 | 74 6f 20 74 68 65 20 66 |plitude |to the f|
|00002b50| 75 6c 6c 20 73 61 6d 70 | 6c 69 6e 67 20 72 61 6e |ull samp|ling ran|
|00002b60| 67 65 20 2d 31 32 38 20 | 74 68 72 6f 75 67 68 20 |ge -128 |through |
|00002b70| 31 32 37 2e 20 53 65 74 | 20 0a 58 76 6f 6c 75 6d |127. Set| .Xvolum|
|00002b80| 65 20 73 6f 20 74 68 65 | 20 73 6f 75 6e 64 20 77 |e so the| sound w|
|00002b90| 69 6c 6c 20 70 6c 61 79 | 62 61 63 6b 20 61 74 20 |ill play|back at |
|00002ba0| 74 68 65 20 64 65 73 69 | 72 65 64 20 76 6f 6c 75 |the desi|red volu|
|00002bb0| 6d 65 20 6c 65 76 65 6c | 2e 20 49 66 20 0a 58 79 |me level|. If .Xy|
|00002bc0| 6f 75 20 73 65 74 20 74 | 68 65 20 73 61 6d 70 6c |ou set t|he sampl|
|00002bd0| 65 73 50 65 72 48 69 43 | 79 63 6c 65 20 66 69 65 |esPerHiC|ycle fie|
|00002be0| 6c 64 20 70 72 6f 70 65 | 72 6c 79 2c 20 74 68 65 |ld prope|rly, the|
|00002bf0| 20 64 61 74 61 20 63 61 | 6e 20 61 6c 73 6f 20 62 | data ca|n also b|
|00002c00| 65 20 0a 58 75 73 65 64 | 20 61 73 20 61 20 6d 75 |e .Xused| as a mu|
|00002c10| 73 69 63 61 6c 20 69 6e | 73 74 72 75 6d 65 6e 74 |sical in|strument|
|00002c20| 2e 0a 58 0a 58 45 78 70 | 65 72 69 6d 65 6e 74 20 |..X.XExp|eriment |
|00002c30| 77 69 74 68 20 64 61 74 | 61 20 63 6f 6d 70 72 65 |with dat|a compre|
|00002c40| 73 73 69 6f 6e 2e 20 49 | 66 20 74 68 65 20 64 65 |ssion. I|f the de|
|00002c50| 63 6f 6d 70 72 65 73 73 | 65 64 20 73 69 67 6e 61 |compress|ed signa|
|00002c60| 6c 20 73 6f 75 6e 64 73 | 20 0a 58 6f 6b 2c 20 73 |l sounds| .Xok, s|
|00002c70| 74 6f 72 65 20 74 68 65 | 20 63 6f 6d 70 72 65 73 |tore the| compres|
|00002c80| 73 65 64 20 64 61 74 61 | 20 69 6e 20 74 68 65 20 |sed data| in the |
|00002c90| 42 4f 44 59 20 63 68 75 | 6e 6b 20 61 6e 64 20 73 |BODY chu|nk and s|
|00002ca0| 65 74 20 73 43 6f 6d 70 | 72 65 73 73 69 6f 6e 20 |et sComp|ression |
|00002cb0| 0a 58 74 6f 20 74 68 65 | 20 63 6f 6d 70 72 65 73 |.Xto the| compres|
|00002cc0| 73 69 6f 6e 20 63 6f 64 | 65 20 6e 75 6d 62 65 72 |sion cod|e number|
|00002cd0| 2e 0a 58 0a 58 52 65 63 | 6f 72 64 69 6e 67 20 61 |..X.XRec|ording a|
|00002ce0| 20 6d 75 73 69 63 61 6c | 20 69 6e 73 74 72 75 6d | musical| instrum|
|00002cf0| 65 6e 74 2e 20 54 6f 20 | 73 74 6f 72 65 20 61 20 |ent. To |store a |
|00002d00| 6d 75 73 69 63 61 6c 20 | 69 6e 73 74 72 75 6d 65 |musical |instrume|
|00002d10| 6e 74 20 69 6e 20 61 20 | 0a 58 46 4f 52 4d 20 38 |nt in a |.XFORM 8|
|00002d20| 53 56 58 2c 20 66 69 72 | 73 74 20 72 65 63 6f 72 |SVX, fir|st recor|
|00002d30| 64 20 6f 72 20 73 79 6e | 74 68 65 73 69 7a 65 20 |d or syn|thesize |
|00002d40| 61 73 20 6d 61 6e 79 20 | 6f 63 74 61 76 65 73 20 |as many |octaves |
|00002d50| 6f 66 20 64 61 74 61 20 | 61 73 20 79 6f 75 20 0a |of data |as you .|
|00002d60| 58 77 61 6e 74 20 74 6f | 20 6d 61 6b 65 20 61 76 |Xwant to| make av|
|00002d70| 61 69 6c 61 62 6c 65 20 | 66 6f 72 20 70 6c 61 79 |ailable |for play|
|00002d80| 62 61 63 6b 2e 20 53 65 | 74 20 63 74 4f 63 74 61 |back. Se|t ctOcta|
|00002d90| 76 65 73 20 74 6f 20 74 | 68 65 20 63 6f 75 6e 74 |ves to t|he count|
|00002da0| 20 6f 66 20 0a 58 6f 63 | 74 61 76 65 73 2e 20 46 | of .Xoc|taves. F|
|00002db0| 72 6f 6d 20 74 68 65 20 | 72 65 63 6f 72 64 65 64 |rom the |recorded|
|00002dc0| 20 64 61 74 61 2c 20 65 | 78 63 65 72 70 74 20 61 | data, e|xcerpt a|
|00002dd0| 6e 20 69 6e 74 65 67 72 | 61 6c 20 6e 75 6d 62 65 |n integr|al numbe|
|00002de0| 72 20 6f 66 20 73 74 65 | 61 64 79 20 0a 58 73 74 |r of ste|ady .Xst|
|00002df0| 61 74 65 20 63 79 63 6c | 65 73 20 66 6f 72 20 74 |ate cycl|es for t|
|00002e00| 68 65 20 72 65 70 65 61 | 74 20 70 61 72 74 20 61 |he repea|t part a|
|00002e10| 6e 64 20 73 65 74 20 72 | 65 70 65 61 74 48 69 53 |nd set r|epeatHiS|
|00002e20| 61 6d 70 6c 65 73 20 61 | 6e 64 20 73 61 6d 70 6c |amples a|nd sampl|
|00002e30| 65 73 50 65 72 48 69 43 | 79 63 6c 65 2e 20 0a 58 |esPerHiC|ycle. .X|
|00002e40| 45 69 74 68 65 72 20 65 | 78 63 65 72 70 74 20 61 |Either e|xcerpt a|
|00002e50| 20 73 74 61 72 74 75 70 | 20 74 72 61 6e 73 69 65 | startup| transie|
|00002e60| 6e 74 20 77 61 76 65 66 | 6f 72 6d 20 61 6e 64 20 |nt wavef|orm and |
|00002e70| 73 65 74 20 6f 6e 65 53 | 68 6f 74 48 69 53 61 6d |set oneS|hotHiSam|
|00002e80| 70 6c 65 73 2c 20 0a 58 | 6f 72 20 65 6c 73 65 20 |ples, .X|or else |
|00002e90| 73 65 74 20 6f 6e 65 53 | 68 6f 74 48 69 53 61 6d |set oneS|hotHiSam|
|00002ea0| 70 6c 65 73 20 74 6f 20 | 30 2e 20 52 65 6d 65 6d |ples to |0. Remem|
|00002eb0| 62 65 72 2c 20 74 68 65 | 20 6f 6e 65 2d 73 68 6f |ber, the| one-sho|
|00002ec0| 74 20 61 6e 64 20 72 65 | 70 65 61 74 20 0a 58 70 |t and re|peat .Xp|
|00002ed0| 61 72 74 73 20 6f 66 20 | 65 61 63 68 20 6f 63 74 |arts of |each oct|
|00002ee0| 61 76 65 20 6d 75 73 74 | 20 62 65 20 74 77 69 63 |ave must| be twic|
|00002ef0| 65 20 61 73 20 6c 6f 6e | 67 20 61 73 20 74 68 6f |e as lon|g as tho|
|00002f00| 73 65 20 6f 66 20 74 68 | 65 20 6e 65 78 74 20 68 |se of th|e next h|
|00002f10| 69 67 68 65 72 20 0a 58 | 6f 63 74 61 76 65 2e 20 |igher .X|octave. |
|00002f20| 53 63 61 6c 65 20 74 68 | 65 20 73 69 67 6e 61 6c |Scale th|e signal|
|00002f30| 20 61 6d 70 6c 69 74 75 | 64 65 20 74 6f 20 74 68 | amplitu|de to th|
|00002f40| 65 20 66 75 6c 6c 20 73 | 61 6d 70 6c 69 6e 67 20 |e full s|ampling |
|00002f50| 72 61 6e 67 65 20 61 6e | 64 20 0a 58 73 65 74 20 |range an|d .Xset |
|00002f60| 76 6f 6c 75 6d 65 20 74 | 6f 20 61 64 6a 75 73 74 |volume t|o adjust|
|00002f70| 20 74 68 65 20 69 6e 73 | 74 72 75 6d 65 6e 74 20 | the ins|trument |
|00002f80| 70 6c 61 79 62 61 63 6b | 20 76 6f 6c 75 6d 65 2e |playback| volume.|
|00002f90| 20 49 66 20 79 6f 75 20 | 73 65 74 20 74 68 65 20 | If you |set the |
|00002fa0| 0a 58 73 61 6d 70 6c 65 | 73 50 65 72 53 65 63 20 |.Xsample|sPerSec |
|00002fb0| 66 69 65 6c 64 20 70 72 | 6f 70 65 72 6c 79 2c 20 |field pr|operly, |
|00002fc0| 74 68 65 20 64 61 74 61 | 20 63 61 6e 20 61 6c 73 |the data| can als|
|00002fd0| 6f 20 62 65 20 75 73 65 | 64 20 61 73 20 61 20 6f |o be use|d as a o|
|00002fe0| 6e 65 2d 73 68 6f 74 20 | 0a 58 73 6f 75 6e 64 2e |ne-shot |.Xsound.|
|00002ff0| 0a 58 0a 58 41 20 64 69 | 73 74 6f 72 74 69 6f 6e |.X.XA di|stortion|
|00003000| 2d 69 6e 74 72 6f 64 75 | 63 69 6e 67 20 63 6f 6d |-introdu|cing com|
|00003010| 70 72 65 73 73 6f 72 20 | 6c 69 6b 65 20 73 43 6d |pressor |like sCm|
|00003020| 70 46 69 62 44 65 6c 74 | 61 20 69 73 20 6e 6f 74 |pFibDelt|a is not|
|00003030| 20 72 65 63 6f 6d 6d 65 | 6e 64 65 64 20 0a 58 66 | recomme|nded .Xf|
|00003040| 6f 72 20 6d 75 73 69 63 | 61 6c 20 69 6e 73 74 72 |or music|al instr|
|00003050| 75 6d 65 6e 74 73 2c 20 | 62 75 74 20 79 6f 75 20 |uments, |but you |
|00003060| 6d 69 67 68 74 20 74 72 | 79 20 69 74 20 61 6e 77 |might tr|y it anw|
|00003070| 61 79 2e 0a 58 0a 58 54 | 79 70 69 63 61 6c 6c 79 |ay..X.XT|ypically|
|00003080| 2c 20 63 72 65 61 74 6f | 72 73 20 6f 66 20 46 4f |, creato|rs of FO|
|00003090| 52 4d 20 38 53 56 58 20 | 72 65 63 6f 72 64 20 61 |RM 8SVX |record a|
|000030a0| 6e 20 61 63 6f 75 73 74 | 69 63 20 69 6e 73 74 72 |n acoust|ic instr|
|000030b0| 75 6d 65 6e 74 20 61 74 | 20 0a 58 6a 75 73 74 20 |ument at| .Xjust |
|000030c0| 6f 6e 65 20 66 72 65 71 | 75 65 6e 63 79 2e 20 44 |one freq|uency. D|
|000030d0| 65 63 69 6d 61 74 65 20 | 28 64 6f 77 6e 2d 20 73 |ecimate |(down- s|
|000030e0| 61 6d 70 6c 65 20 77 69 | 74 68 20 66 69 6c 74 65 |ample wi|th filte|
|000030f0| 72 69 6e 67 29 20 74 6f | 20 63 6f 6d 70 75 74 65 |ring) to| compute|
|00003100| 20 0a 58 68 69 67 68 65 | 72 20 6f 63 74 61 76 65 | .Xhighe|r octave|
|00003110| 73 2e 20 49 6e 74 65 72 | 70 6f 6c 61 74 65 20 74 |s. Inter|polate t|
|00003120| 6f 20 63 6f 6d 70 75 74 | 65 20 6c 6f 77 65 72 20 |o comput|e lower |
|00003130| 6f 63 74 61 76 65 73 2e | 0a 58 0a 58 49 66 20 79 |octaves.|.X.XIf y|
|00003140| 6f 75 20 73 61 6d 70 6c | 65 20 61 6e 20 61 63 6f |ou sampl|e an aco|
|00003150| 75 73 74 69 63 20 69 6e | 73 74 72 75 6d 65 6e 74 |ustic in|strument|
|00003160| 20 61 74 20 64 69 66 66 | 65 72 65 6e 74 20 6f 63 | at diff|erent oc|
|00003170| 74 61 76 65 73 2c 20 79 | 6f 75 20 6d 61 79 20 0a |taves, y|ou may .|
|00003180| 58 66 69 6e 64 20 69 74 | 20 68 61 72 64 20 74 6f |Xfind it| hard to|
|00003190| 20 6d 61 6b 65 20 74 68 | 65 20 6f 6e 65 2d 73 68 | make th|e one-sh|
|000031a0| 6f 74 20 61 6e 64 20 72 | 65 70 65 61 74 20 77 61 |ot and r|epeat wa|
|000031b0| 76 65 66 6f 72 6d 73 20 | 66 6f 6c 6c 6f 77 20 74 |veforms |follow t|
|000031c0| 68 65 20 0a 58 66 61 63 | 74 6f 72 2d 6f 66 2d 74 |he .Xfac|tor-of-t|
|000031d0| 77 6f 20 72 75 6c 65 20 | 66 6f 72 20 6f 63 74 61 |wo rule |for octa|
|000031e0| 76 65 73 2e 20 54 6f 20 | 63 6f 6d 70 65 6e 73 61 |ves. To |compensa|
|000031f0| 74 65 2c 20 6c 65 6e 67 | 74 68 65 6e 20 61 6e 20 |te, leng|then an |
|00003200| 6f 63 74 61 76 65 27 73 | 20 0a 58 6f 6e 65 2d 73 |octave's| .Xone-s|
|00003210| 68 6f 74 20 70 61 72 74 | 20 62 79 20 61 70 70 65 |hot part| by appe|
|00003220| 6e 64 69 6e 67 20 72 65 | 70 6c 69 63 61 74 69 6f |nding re|plicatio|
|00003230| 6e 73 20 6f 66 20 74 68 | 65 20 72 65 70 65 61 74 |ns of th|e repeat|
|00003240| 69 6e 67 20 63 79 63 6c | 65 20 6f 72 20 0a 58 70 |ing cycl|e or .Xp|
|00003250| 72 65 70 65 6e 64 69 6e | 67 20 7a 65 72 6f 73 2e |rependin|g zeros.|
|00003260| 20 28 54 68 69 73 20 77 | 69 6c 6c 20 68 61 76 65 | (This w|ill have|
|00003270| 20 6d 69 6e 69 6d 61 6c | 20 69 6d 70 61 63 74 20 | minimal| impact |
|00003280| 6f 6e 20 74 68 65 20 73 | 6f 75 6e 64 27 73 20 73 |on the s|ound's s|
|00003290| 74 61 72 74 20 0a 58 74 | 69 6d 65 2e 29 20 59 6f |tart .Xt|ime.) Yo|
|000032a0| 75 20 6d 61 79 20 62 65 | 20 61 62 6c 65 20 74 6f |u may be| able to|
|000032b0| 20 65 71 75 61 6c 69 7a | 65 20 74 68 65 20 72 61 | equaliz|e the ra|
|000032c0| 74 69 6f 20 6f 6e 65 2d | 73 68 6f 74 2d 73 61 6d |tio one-|shot-sam|
|000032d0| 70 6c 65 73 20 3a 20 72 | 65 70 65 61 74 2d 73 61 |ples : r|epeat-sa|
|000032e0| 6d 70 6c 65 73 20 0a 58 | 61 63 72 6f 73 73 20 61 |mples .X|across a|
|000032f0| 6c 6c 20 6f 63 74 61 76 | 65 73 2e 0a 58 0a 58 4e |ll octav|es..X.XN|
|00003300| 6f 74 65 20 74 68 61 74 | 20 61 20 22 6f 6e 65 2d |ote that| a "one-|
|00003310| 73 68 6f 74 20 73 6f 75 | 6e 64 22 20 6d 61 79 20 |shot sou|nd" may |
|00003320| 62 65 20 70 6c 61 79 65 | 64 20 61 73 20 61 20 22 |be playe|d as a "|
|00003330| 6d 75 73 69 63 61 6c 20 | 69 6e 73 74 72 75 6d 65 |musical |instrume|
|00003340| 6e 74 22 20 0a 58 61 6e | 64 20 76 69 63 65 20 76 |nt" .Xan|d vice v|
|00003350| 65 72 73 61 2e 20 48 6f | 77 65 76 65 72 2c 20 61 |ersa. Ho|wever, a|
|00003360| 6e 20 69 6e 73 74 72 75 | 6d 65 6e 74 20 70 6c 61 |n instru|ment pla|
|00003370| 79 65 72 20 64 65 70 65 | 6e 64 73 20 6f 6e 20 73 |yer depe|nds on s|
|00003380| 61 6d 70 6c 65 73 50 65 | 72 48 69 43 79 63 6c 65 |amplesPe|rHiCycle|
|00003390| 2c 20 0a 58 61 6e 64 20 | 61 20 6f 6e 65 2d 73 68 |, .Xand |a one-sh|
|000033a0| 6f 74 20 70 6c 61 79 65 | 72 20 64 65 70 65 6e 64 |ot playe|r depend|
|000033b0| 73 20 6f 6e 20 73 61 6d | 70 6c 65 73 50 65 72 53 |s on sam|plesPerS|
|000033c0| 65 63 2e 0a 58 0a 58 50 | 6c 61 79 69 6e 67 20 61 |ec..X.XP|laying a|
|000033d0| 20 6f 6e 65 2d 73 68 6f | 74 20 73 6f 75 6e 64 2e | one-sho|t sound.|
|000033e0| 20 54 6f 20 70 6c 61 79 | 20 61 6e 79 20 46 4f 52 | To play| any FOR|
|000033f0| 4d 20 38 53 56 58 20 64 | 61 74 61 20 61 73 20 61 |M 8SVX d|ata as a|
|00003400| 20 6f 6e 65 2d 73 68 6f | 74 20 0a 58 73 6f 75 6e | one-sho|t .Xsoun|
|00003410| 64 2c 20 66 69 72 73 74 | 20 73 65 6c 65 63 74 20 |d, first| select |
|00003420| 61 6e 20 6f 63 74 61 76 | 65 20 69 66 20 63 74 4f |an octav|e if ctO|
|00003430| 63 74 61 76 65 20 3e 20 | 31 2e 20 28 54 68 65 20 |ctave > |1. (The |
|00003440| 6c 6f 77 65 73 74 2d 66 | 72 65 71 75 65 6e 63 79 |lowest-f|requency|
|00003450| 20 0a 58 6f 63 74 61 76 | 65 20 68 61 73 20 74 68 | .Xoctav|e has th|
|00003460| 65 20 67 72 65 61 74 65 | 73 74 20 72 65 73 6f 6c |e greate|st resol|
|00003470| 75 74 69 6f 6e 2e 29 20 | 50 6c 61 79 20 74 68 65 |ution.) |Play the|
|00003480| 20 6f 6e 65 2d 73 68 6f | 74 20 73 61 6d 70 6c 65 | one-sho|t sample|
|00003490| 73 20 74 68 65 6e 20 0a | 58 74 68 65 20 72 65 70 |s then .|Xthe rep|
|000034a0| 65 61 74 20 73 61 6d 70 | 6c 65 73 2c 20 73 63 61 |eat samp|les, sca|
|000034b0| 6c 65 64 20 62 79 20 76 | 6f 6c 75 6d 65 2c 20 61 |led by v|olume, a|
|000034c0| 74 20 61 20 64 61 74 61 | 20 72 61 74 65 20 6f 66 |t a data| rate of|
|000034d0| 20 73 61 6d 70 6c 65 73 | 50 65 72 53 65 63 2e 20 | samples|PerSec. |
|000034e0| 0a 58 4f 66 20 63 6f 75 | 72 73 65 2c 20 79 6f 75 |.XOf cou|rse, you|
|000034f0| 20 6d 61 79 20 61 64 6a | 75 73 74 20 74 68 65 20 | may adj|ust the |
|00003500| 70 6c 61 79 62 61 63 6b | 20 72 61 74 65 20 61 6e |playback| rate an|
|00003510| 64 20 76 6f 6c 75 6d 65 | 2e 20 59 6f 75 20 63 61 |d volume|. You ca|
|00003520| 6e 20 70 6c 61 79 20 0a | 58 6f 75 74 20 61 6e 20 |n play .|Xout an |
|00003530| 65 6e 76 65 6c 6f 70 65 | 2c 20 74 6f 6f 2e 20 28 |envelope|, too. (|
|00003540| 53 65 65 20 41 54 41 4b | 20 61 6e 64 20 52 4c 53 |See ATAK| and RLS|
|00003550| 45 2c 20 62 65 6c 6f 77 | 2e 29 0a 58 0a 58 50 6c |E, below|.).X.XPl|
|00003560| 61 79 69 6e 67 20 61 20 | 6d 75 73 69 63 61 6c 20 |aying a |musical |
|00003570| 6e 6f 74 65 2e 20 54 6f | 20 70 6c 61 79 20 61 20 |note. To| play a |
|00003580| 6d 75 73 69 63 61 6c 20 | 6e 6f 74 65 20 75 73 69 |musical |note usi|
|00003590| 6e 67 20 61 6e 79 20 46 | 4f 52 4d 20 38 53 56 58 |ng any F|ORM 8SVX|
|000035a0| 2c 20 0a 58 66 69 72 73 | 74 20 73 65 6c 65 63 74 |, .Xfirs|t select|
|000035b0| 20 74 68 65 20 6e 65 61 | 72 65 73 74 20 6f 63 74 | the nea|rest oct|
|000035c0| 61 76 65 20 6f 66 20 64 | 61 74 61 20 66 72 6f 6d |ave of d|ata from|
|000035d0| 20 74 68 6f 73 65 20 61 | 76 61 69 6c 61 62 6c 65 | those a|vailable|
|000035e0| 2e 20 50 6c 61 79 20 0a | 58 74 68 65 20 6f 6e 65 |. Play .|Xthe one|
|000035f0| 2d 73 68 6f 74 20 77 61 | 76 65 66 6f 72 6d 20 74 |-shot wa|veform t|
|00003600| 68 65 6e 20 63 79 63 6c | 65 20 6f 6e 20 74 68 65 |hen cycl|e on the|
|00003610| 20 72 65 70 65 61 74 20 | 77 61 76 65 66 6f 72 6d | repeat |waveform|
|00003620| 20 61 73 20 6c 6f 6e 67 | 20 61 73 20 0a 58 6e 65 | as long| as .Xne|
|00003630| 65 64 65 64 20 74 6f 20 | 73 75 73 74 61 69 6e 20 |eded to |sustain |
|00003640| 74 68 65 20 6e 6f 74 65 | 2e 20 53 63 61 6c 65 20 |the note|. Scale |
|00003650| 74 68 65 20 73 69 67 6e | 61 6c 20 62 79 20 76 6f |the sign|al by vo|
|00003660| 6c 75 6d 65 2c 20 70 65 | 72 68 61 70 73 20 61 6c |lume, pe|rhaps al|
|00003670| 73 6f 20 0a 58 62 79 20 | 61 6e 20 65 6e 76 65 6c |so .Xby |an envel|
|00003680| 6f 70 65 2c 20 61 6e 64 | 20 62 79 20 61 20 64 65 |ope, and| by a de|
|00003690| 73 69 72 65 64 20 6e 6f | 74 65 20 76 6f 6c 75 6d |sired no|te volum|
|000036a0| 65 2e 20 53 65 6c 65 63 | 74 20 61 20 70 6c 61 79 |e. Selec|t a play|
|000036b0| 62 61 63 6b 20 64 61 74 | 61 20 0a 58 72 61 74 65 |back dat|a .Xrate|
|000036c0| 20 73 20 73 61 6d 70 6c | 65 73 2f 73 65 63 6f 6e | s sampl|es/secon|
|000036d0| 64 20 74 6f 20 61 63 68 | 69 65 76 65 20 74 68 65 |d to ach|ieve the|
|000036e0| 20 64 65 73 69 72 65 64 | 20 66 72 65 71 75 65 6e | desired| frequen|
|000036f0| 63 79 20 28 69 6e 20 48 | 7a 29 3a 0a 58 66 72 65 |cy (in H|z):.Xfre|
|00003700| 71 75 65 6e 63 79 20 3d | 20 73 4a 2f 4a 73 61 6d |quency =| sJ/Jsam|
|00003710| 70 6c 65 73 50 65 72 48 | 69 43 79 63 6c 65 0a 58 |plesPerH|iCycle.X|
|00003720| 66 6f 72 20 74 68 65 20 | 68 69 67 68 65 73 74 20 |for the |highest |
|00003730| 66 72 65 71 75 65 6e 63 | 79 20 6f 63 74 61 76 65 |frequenc|y octave|
|00003740| 2e 0a 58 0a 58 54 68 65 | 20 69 64 65 61 20 69 73 |..X.XThe| idea is|
|00003750| 20 74 6f 20 73 65 6c 65 | 63 74 20 61 6e 20 6f 63 | to sele|ct an oc|
|00003760| 74 61 76 65 20 61 6e 64 | 20 6f 6e 65 20 6f 66 20 |tave and| one of |
|00003770| 31 32 20 73 61 6d 70 6c | 69 6e 67 20 72 61 74 65 |12 sampl|ing rate|
|00003780| 73 20 28 61 73 73 75 6d | 69 6e 67 20 0a 58 61 20 |s (assum|ing .Xa |
|00003790| 31 32 2d 74 6f 6e 65 20 | 73 63 61 6c 65 29 2e 20 |12-tone |scale). |
|000037a0| 49 66 20 74 68 65 20 46 | 4f 52 4d 20 38 53 56 58 |If the F|ORM 8SVX|
|000037b0| 20 64 6f 65 73 6e 27 74 | 20 68 61 76 65 20 74 68 | doesn't| have th|
|000037c0| 65 20 72 69 67 68 74 20 | 6f 63 74 61 76 65 2c 20 |e right |octave, |
|000037d0| 0a 58 79 6f 75 20 63 61 | 6e 20 64 65 63 69 6d 61 |.Xyou ca|n decima|
|000037e0| 74 65 20 6f 72 20 69 6e | 74 65 72 70 6f 6c 61 74 |te or in|terpolat|
|000037f0| 65 20 66 72 6f 6d 20 74 | 68 65 20 61 76 61 69 6c |e from t|he avail|
|00003800| 61 62 6c 65 20 64 61 74 | 61 2e 0a 58 0a 58 57 68 |able dat|a..X.XWh|
|00003810| 65 6e 20 69 74 20 63 6f | 6d 65 73 20 74 6f 20 6d |en it co|mes to m|
|00003820| 75 73 69 63 61 6c 20 69 | 6e 73 74 72 75 6d 65 6e |usical i|nstrumen|
|00003830| 74 73 2c 20 46 4f 52 4d | 20 38 53 56 58 20 69 73 |ts, FORM| 8SVX is|
|00003840| 20 67 65 61 72 65 64 20 | 66 6f 72 20 61 20 73 69 | geared |for a si|
|00003850| 6d 70 6c 65 20 0a 58 73 | 6f 75 6e 64 20 64 72 69 |mple .Xs|ound dri|
|00003860| 76 65 72 2e 20 53 75 63 | 68 20 61 20 64 72 69 76 |ver. Suc|h a driv|
|00003870| 65 72 20 75 73 65 73 20 | 61 20 73 69 6e 67 6c 65 |er uses |a single|
|00003880| 20 74 61 62 6c 65 20 6f | 66 20 31 32 20 64 61 74 | table o|f 12 dat|
|00003890| 61 20 72 61 74 65 73 20 | 74 6f 20 0a 58 72 65 61 |a rates |to .Xrea|
|000038a0| 63 68 20 61 6c 6c 20 6e | 6f 74 65 73 20 69 6e 20 |ch all n|otes in |
|000038b0| 61 6c 6c 20 6f 63 74 61 | 76 65 73 2e 20 54 68 61 |all octa|ves. Tha|
|000038c0| 74 27 73 20 77 68 79 20 | 38 53 56 58 20 72 65 71 |t's why |8SVX req|
|000038d0| 75 69 72 65 73 20 65 61 | 63 68 20 6f 63 74 61 76 |uires ea|ch octav|
|000038e0| 65 20 0a 58 6f 66 20 64 | 61 74 61 20 74 6f 20 68 |e .Xof d|ata to h|
|000038f0| 61 76 65 20 74 77 69 63 | 65 20 61 73 20 6d 61 6e |ave twic|e as man|
|00003900| 79 20 73 61 6d 70 6c 65 | 73 20 61 73 20 74 68 65 |y sample|s as the|
|00003910| 20 6e 65 78 74 20 68 69 | 67 68 65 72 20 6f 63 74 | next hi|gher oct|
|00003920| 61 76 65 2e 20 49 66 20 | 0a 58 79 6f 75 20 72 65 |ave. If |.Xyou re|
|00003930| 73 74 72 69 63 74 20 73 | 61 6d 70 6c 65 73 50 65 |strict s|amplesPe|
|00003940| 72 48 69 43 79 63 6c 65 | 20 74 6f 20 61 20 70 6f |rHiCycle| to a po|
|00003950| 77 65 72 20 6f 66 20 74 | 77 6f 2c 20 79 6f 75 20 |wer of t|wo, you |
|00003960| 63 61 6e 20 75 73 65 20 | 61 20 70 72 65 64 65 74 |can use |a predet|
|00003970| 65 72 6d 69 6e 65 64 20 | 0a 58 74 61 62 6c 65 20 |ermined |.Xtable |
|00003980| 6f 66 20 64 61 74 61 20 | 72 61 74 65 73 2e 0a 58 |of data |rates..X|
|00003990| 0a 58 4f 70 74 69 6f 6e | 61 6c 20 54 65 78 74 20 |.XOption|al Text |
|000039a0| 43 68 75 6e 6b 73 20 4e | 41 4d 45 2c 20 28 63 29 |Chunks N|AME, (c)|
|000039b0| 2c 20 41 55 54 48 2c 20 | 41 4e 4e 4f 0a 58 0a 58 |, AUTH, |ANNO.X.X|
|000039c0| 53 65 76 65 72 61 6c 20 | 74 65 78 74 20 63 68 75 |Several |text chu|
|000039d0| 6e 6b 73 20 6d 61 79 20 | 62 65 20 69 6e 63 6c 75 |nks may |be inclu|
|000039e0| 64 65 64 20 69 6e 20 61 | 20 46 4f 52 4d 20 38 53 |ded in a| FORM 8S|
|000039f0| 56 58 20 74 6f 20 6b 65 | 65 70 20 61 6e 63 69 6c |VX to ke|ep ancil|
|00003a00| 6c 61 72 79 20 0a 58 69 | 6e 66 6f 72 6d 61 74 69 |lary .Xi|nformati|
|00003a10| 6f 6e 2e 0a 58 0a 58 54 | 68 65 20 6f 70 74 69 6f |on..X.XT|he optio|
|00003a20| 6e 61 6c 20 70 72 6f 70 | 65 72 74 79 20 22 4e 41 |nal prop|erty "NA|
|00003a30| 4d 45 22 20 6e 61 6d 65 | 73 20 74 68 65 20 76 6f |ME" name|s the vo|
|00003a40| 69 63 65 2c 20 66 6f 72 | 20 69 6e 73 74 61 6e 63 |ice, for| instanc|
|00003a50| 65 20 22 74 75 62 75 6c | 61 72 20 0a 58 62 65 6c |e "tubul|ar .Xbel|
|00003a60| 6c 73 22 2e 0a 58 0a 58 | 54 68 65 20 6f 70 74 69 |ls"..X.X|The opti|
|00003a70| 6f 6e 61 6c 20 70 72 6f | 70 65 72 74 79 20 22 28 |onal pro|perty "(|
|00003a80| 63 29 4a 22 20 68 6f 6c | 64 73 20 61 20 63 6f 70 |c)J" hol|ds a cop|
|00003a90| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 20 66 6f |yright n|otice fo|
|00003aa0| 72 20 74 68 65 20 76 6f | 69 63 65 2e 20 0a 58 54 |r the vo|ice. .XT|
|00003ab0| 68 65 20 63 68 75 6e 6b | 20 49 44 20 22 28 63 29 |he chunk| ID "(c)|
|00003ac0| 4a 22 20 73 65 72 76 65 | 73 20 61 73 20 74 68 65 |J" serve|s as the|
|00003ad0| 20 63 6f 70 79 72 69 67 | 68 74 20 63 68 61 72 61 | copyrig|ht chara|
|00003ae0| 63 74 65 72 73 20 22 29 | 4a 22 2e 20 45 2e 67 2e |cters ")|J". E.g.|
|00003af0| 20 0a 58 61 20 22 28 63 | 29 4a 22 20 63 68 75 6e | .Xa "(c|)J" chun|
|00003b00| 6b 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 22 31 39 |k contai|ning "19|
|00003b10| 38 36 20 45 6c 65 63 74 | 72 6f 6e 69 63 20 41 72 |86 Elect|ronic Ar|
|00003b20| 74 73 22 20 6d 65 61 6e | 73 20 22 29 20 31 39 38 |ts" mean|s ") 198|
|00003b30| 36 20 45 6c 65 63 74 72 | 6f 6e 69 63 20 0a 58 41 |6 Electr|onic .XA|
|00003b40| 72 74 73 22 2e 0a 58 0a | 58 54 68 65 20 6f 70 74 |rts"..X.|XThe opt|
|00003b50| 69 6f 6e 61 6c 20 70 72 | 6f 70 65 72 74 79 20 22 |ional pr|operty "|
|00003b60| 41 55 54 48 22 20 68 6f | 6c 64 73 20 74 68 65 20 |AUTH" ho|lds the |
|00003b70| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 69 6e 73 74 |name of |the inst|
|00003b80| 72 75 6d 65 6e 74 27 73 | 20 22 61 75 74 68 6f 72 |rument's| "author|
|00003b90| 22 20 0a 58 6f 72 20 22 | 63 72 65 61 74 6f 72 22 |" .Xor "|creator"|
|00003ba0| 2e 0a 58 0a 58 54 68 65 | 20 63 68 75 6e 6b 20 74 |..X.XThe| chunk t|
|00003bb0| 79 70 65 73 20 22 4e 41 | 4d 45 22 2c 20 22 28 63 |ypes "NA|ME", "(c|
|00003bc0| 29 20 22 2c 20 61 6e 64 | 20 22 41 55 54 48 22 20 |) ", and| "AUTH" |
|00003bd0| 61 72 65 20 70 72 6f 70 | 65 72 74 79 20 63 68 75 |are prop|erty chu|
|00003be0| 6e 6b 73 2e 20 50 75 74 | 74 69 6e 67 20 0a 58 6d |nks. Put|ting .Xm|
|00003bf0| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 4e 41 4d |ore than| one NAM|
|00003c00| 45 20 28 6f 72 20 6f 74 | 68 65 72 29 20 70 72 6f |E (or ot|her) pro|
|00003c10| 70 65 72 74 79 20 69 6e | 20 61 20 46 4f 52 4d 20 |perty in| a FORM |
|00003c20| 69 73 20 72 65 64 75 6e | 64 61 6e 74 2e 20 4a 75 |is redun|dant. Ju|
|00003c30| 73 74 20 0a 58 74 68 65 | 20 6c 61 73 74 20 4e 41 |st .Xthe| last NA|
|00003c40| 4d 45 20 63 6f 75 6e 74 | 73 2e 20 41 20 70 72 6f |ME count|s. A pro|
|00003c50| 70 65 72 74 79 20 73 68 | 6f 75 6c 64 20 62 65 20 |perty sh|ould be |
|00003c60| 73 68 6f 72 74 65 72 20 | 74 68 61 6e 20 32 35 36 |shorter |than 256|
|00003c70| 20 63 68 61 72 61 63 74 | 65 72 73 2e 20 0a 58 50 | charact|ers. .XP|
|00003c80| 72 6f 70 65 72 74 69 65 | 73 20 63 61 6e 20 61 70 |ropertie|s can ap|
|00003c90| 70 65 61 72 20 69 6e 20 | 61 20 50 52 4f 50 20 38 |pear in |a PROP 8|
|00003ca0| 53 56 58 20 74 6f 20 73 | 68 61 72 65 20 74 68 65 |SVX to s|hare the|
|00003cb0| 6d 20 6f 76 65 72 20 61 | 20 4c 49 53 54 20 6f 66 |m over a| LIST of|
|00003cc0| 20 0a 58 46 4f 52 4d 73 | 20 38 53 56 58 2e 0a 58 | .XFORMs| 8SVX..X|
|00003cd0| 0a 58 54 68 65 20 6f 70 | 74 69 6f 6e 61 6c 20 64 |.XThe op|tional d|
|00003ce0| 61 74 61 20 63 68 75 6e | 6b 20 22 41 4e 4e 4f 22 |ata chun|k "ANNO"|
|00003cf0| 20 68 6f 6c 64 73 20 61 | 6e 79 20 74 65 78 74 20 | holds a|ny text |
|00003d00| 61 6e 6e 6f 74 61 74 69 | 6f 6e 73 20 74 79 70 65 |annotati|ons type|
|00003d10| 64 20 69 6e 20 0a 58 62 | 79 20 74 68 65 20 61 75 |d in .Xb|y the au|
|00003d20| 74 68 6f 72 2e 0a 58 0a | 58 41 6e 20 41 4e 4e 4f |thor..X.|XAn ANNO|
|00003d30| 20 63 68 75 6e 6b 20 69 | 73 20 6e 6f 74 20 61 20 | chunk i|s not a |
|00003d40| 70 72 6f 70 65 72 74 79 | 20 63 68 75 6e 6b 2c 20 |property| chunk, |
|00003d50| 73 6f 20 79 6f 75 20 63 | 61 6e 20 70 75 74 20 6d |so you c|an put m|
|00003d60| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 0a 58 69 |ore than| one .Xi|
|00003d70| 6e 20 61 20 46 4f 52 4d | 20 38 53 56 58 2e 20 59 |n a FORM| 8SVX. Y|
|00003d80| 6f 75 20 63 61 6e 20 6d | 61 6b 65 20 41 4e 4e 4f |ou can m|ake ANNO|
|00003d90| 20 63 68 75 6e 6b 73 20 | 61 6e 79 20 6c 65 6e 67 | chunks |any leng|
|00003da0| 74 68 20 75 70 20 74 6f | 20 32 33 31 20 2d 20 31 |th up to| 231 - 1|
|00003db0| 20 0a 58 63 68 61 72 61 | 63 74 65 72 73 2c 20 62 | .Xchara|cters, b|
|00003dc0| 75 74 20 33 32 37 36 37 | 20 69 73 20 61 20 70 72 |ut 32767| is a pr|
|00003dd0| 61 63 74 69 63 61 6c 20 | 6c 69 6d 69 74 2e 20 53 |actical |limit. S|
|00003de0| 69 6e 63 65 20 74 68 65 | 79 27 72 65 20 6e 6f 74 |ince the|y're not|
|00003df0| 20 70 72 6f 70 65 72 74 | 69 65 73 2c 20 0a 58 41 | propert|ies, .XA|
|00003e00| 4e 4e 4f 20 63 68 75 6e | 6b 73 20 64 6f 6e 27 74 |NNO chun|ks don't|
|00003e10| 20 62 65 6c 6f 6e 67 20 | 69 6e 20 61 20 50 52 4f | belong |in a PRO|
|00003e20| 50 20 38 53 56 58 2e 20 | 54 68 61 74 20 6d 65 61 |P 8SVX. |That mea|
|00003e30| 6e 73 20 74 68 65 79 20 | 63 61 6e 27 74 20 62 65 |ns they |can't be|
|00003e40| 20 0a 58 73 68 61 72 65 | 64 20 6f 76 65 72 20 61 | .Xshare|d over a|
|00003e50| 20 4c 49 53 54 20 6f 66 | 20 46 4f 52 4d 73 20 38 | LIST of| FORMs 8|
|00003e60| 53 56 58 2e 0a 58 0a 58 | 53 79 6e 74 61 63 74 69 |SVX..X.X|Syntacti|
|00003e70| 63 61 6c 6c 79 2c 20 65 | 61 63 68 20 6f 66 20 74 |cally, e|ach of t|
|00003e80| 68 65 73 65 20 63 68 75 | 6e 6b 73 20 63 6f 6e 74 |hese chu|nks cont|
|00003e90| 61 69 6e 73 20 61 6e 20 | 61 72 72 61 79 20 6f 66 |ains an |array of|
|00003ea0| 20 38 2d 62 69 74 20 41 | 53 43 49 49 20 0a 58 63 | 8-bit A|SCII .Xc|
|00003eb0| 68 61 72 61 63 74 65 72 | 73 20 69 6e 20 74 68 65 |haracter|s in the|
|00003ec0| 20 72 61 6e 67 65 20 22 | 20 22 20 28 53 50 2c 20 | range "| " (SP, |
|00003ed0| 68 65 78 20 32 30 29 20 | 74 68 72 6f 75 67 68 20 |hex 20) |through |
|00003ee0| 22 7e 22 20 28 74 69 6c | 64 65 2c 20 68 65 78 20 |"~" (til|de, hex |
|00003ef0| 37 46 29 2c 20 0a 58 6a | 75 73 74 20 6c 69 6b 65 |7F), .Xj|ust like|
|00003f00| 20 61 20 73 74 61 6e 64 | 61 72 64 20 22 54 45 58 | a stand|ard "TEX|
|00003f10| 54 22 20 63 68 75 6e 6b | 2e 20 5b 53 65 65 20 22 |T" chunk|. [See "|
|00003f20| 53 74 72 69 6e 67 73 2c | 20 53 74 72 69 6e 67 20 |Strings,| String |
|00003f30| 43 68 75 6e 6b 73 2c 20 | 61 6e 64 20 0a 58 53 74 |Chunks, |and .XSt|
|00003f40| 72 69 6e 67 20 50 72 6f | 70 65 72 74 69 65 73 22 |ring Pro|perties"|
|00003f50| 20 69 6e 20 22 45 41 20 | 49 46 46 20 38 35 22 20 | in "EA |IFF 85" |
|00003f60| 45 6c 65 63 74 72 6f 6e | 69 63 20 41 72 74 73 20 |Electron|ic Arts |
|00003f70| 49 6e 74 65 72 63 68 61 | 6e 67 65 20 46 69 6c 65 |Intercha|nge File|
|00003f80| 20 0a 58 46 6f 72 6d 61 | 74 2e 5d 20 54 68 65 20 | .XForma|t.] The |
|00003f90| 63 68 75 6e 6b 27 73 20 | 63 6b 53 69 7a 65 20 66 |chunk's |ckSize f|
|00003fa0| 69 65 6c 64 20 68 6f 6c | 64 73 20 74 68 65 20 63 |ield hol|ds the c|
|00003fb0| 6f 75 6e 74 20 6f 66 20 | 63 68 61 72 61 63 74 65 |ount of |characte|
|00003fc0| 72 73 2e 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 49 |rs..X.X#|define I|
|00003fd0| 44 5f 4e 41 4d 45 20 4d | 61 6b 65 49 44 28 27 4e |D_NAME M|akeID('N|
|00003fe0| 27 2c 20 27 41 27 2c 20 | 27 4d 27 2c 20 27 45 27 |', 'A', |'M', 'E'|
|00003ff0| 29 0a 58 2f 2a 20 4e 41 | 4d 45 20 63 68 75 6e 6b |).X/* NA|ME chunk|
|00004000| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 43 48 41 52 | contain|s a CHAR|
|00004010| 5b 5d 2c 20 74 68 65 20 | 76 6f 69 63 65 27 73 20 |[], the |voice's |
|00004020| 6e 61 6d 65 2e 09 2a 2f | 0a 58 0a 58 23 64 65 66 |name..*/|.X.X#def|
|00004030| 69 6e 65 20 49 44 5f 43 | 6f 70 79 72 69 67 68 74 |ine ID_C|opyright|
|00004040| 20 4d 61 6b 65 49 44 28 | 27 28 27 2c 20 27 63 27 | MakeID(|'(', 'c'|
|00004050| 2c 20 27 29 27 2c 20 27 | 20 27 29 0a 58 2f 2a 20 |, ')', '| ').X/* |
|00004060| 22 28 63 29 20 22 20 63 | 68 75 6e 6b 20 63 6f 6e |"(c) " c|hunk con|
|00004070| 74 61 69 6e 73 20 61 20 | 43 48 41 52 5b 5d 2c 20 |tains a |CHAR[], |
|00004080| 74 68 65 20 46 4f 52 4d | 27 73 20 63 6f 70 79 72 |the FORM|'s copyr|
|00004090| 69 67 68 74 20 6e 6f 74 | 69 63 65 2e 09 2a 2f 0a |ight not|ice..*/.|
|000040a0| 58 0a 58 23 64 65 66 69 | 6e 65 20 49 44 5f 41 55 |X.X#defi|ne ID_AU|
|000040b0| 54 48 20 4d 61 6b 65 49 | 44 28 27 41 27 2c 20 27 |TH MakeI|D('A', '|
|000040c0| 55 27 2c 20 27 54 27 2c | 20 27 48 27 29 0a 58 2f |U', 'T',| 'H').X/|
|000040d0| 2a 20 41 55 54 48 20 63 | 68 75 6e 6b 20 63 6f 6e |* AUTH c|hunk con|
|000040e0| 74 61 69 6e 73 20 61 20 | 43 48 41 52 5b 5d 2c 20 |tains a |CHAR[], |
|000040f0| 74 68 65 20 61 75 74 68 | 6f 72 27 73 20 6e 61 6d |the auth|or's nam|
|00004100| 65 2e 09 2a 2f 0a 58 0a | 58 23 64 65 66 69 6e 65 |e..*/.X.|X#define|
|00004110| 20 49 44 5f 41 4e 4e 4f | 20 4d 61 6b 65 49 44 28 | ID_ANNO| MakeID(|
|00004120| 27 41 27 2c 20 27 4e 27 | 2c 20 27 4e 27 2c 20 27 |'A', 'N'|, 'N', '|
|00004130| 4f 27 29 0a 58 2f 2a 20 | 41 4e 4e 4f 20 63 68 75 |O').X/* |ANNO chu|
|00004140| 6e 6b 20 63 6f 6e 74 61 | 69 6e 73 20 61 20 43 48 |nk conta|ins a CH|
|00004150| 41 52 5b 5d 2c 20 61 75 | 74 68 6f 72 27 73 20 74 |AR[], au|thor's t|
|00004160| 65 78 74 20 61 6e 6e 6f | 74 61 74 69 6f 6e 73 2e |ext anno|tations.|
|00004170| 09 2a 2f 0a 58 0a 58 52 | 65 6d 65 6d 62 65 72 20 |.*/.X.XR|emember |
|00004180| 74 6f 20 73 74 6f 72 65 | 20 61 20 30 20 70 61 64 |to store| a 0 pad|
|00004190| 20 62 79 74 65 20 61 66 | 74 65 72 20 61 6e 79 20 | byte af|ter any |
|000041a0| 6f 64 64 2d 6c 65 6e 67 | 74 68 20 63 68 75 6e 6b |odd-leng|th chunk|
|000041b0| 2e 0a 58 0a 58 4f 70 74 | 69 6f 6e 61 6c 20 44 61 |..X.XOpt|ional Da|
|000041c0| 74 61 20 43 68 75 6e 6b | 73 20 41 54 41 4b 20 61 |ta Chunk|s ATAK a|
|000041d0| 6e 64 20 52 4c 53 45 0a | 58 0a 58 54 68 65 20 6f |nd RLSE.|X.XThe o|
|000041e0| 70 74 69 6f 6e 61 6c 20 | 64 61 74 61 20 63 68 75 |ptional |data chu|
|000041f0| 6e 6b 73 20 41 54 41 4b | 20 61 6e 64 20 52 4c 53 |nks ATAK| and RLS|
|00004200| 45 20 74 6f 67 65 74 68 | 65 72 20 67 69 76 65 20 |E togeth|er give |
|00004210| 61 20 70 69 65 63 65 77 | 69 73 65 2d 6c 69 6e 65 |a piecew|ise-line|
|00004220| 61 72 20 0a 58 22 65 6e | 76 65 6c 6f 70 65 22 20 |ar .X"en|velope" |
|00004230| 6f 72 20 22 61 6d 70 6c | 69 74 75 64 65 20 63 6f |or "ampl|itude co|
|00004240| 6e 74 6f 75 72 22 2e 20 | 54 68 69 73 20 63 6f 6e |ntour". |This con|
|00004250| 74 6f 75 72 20 6d 61 79 | 20 62 65 20 75 73 65 64 |tour may| be used|
|00004260| 20 74 6f 20 6d 6f 64 75 | 6c 61 74 65 20 0a 58 74 | to modu|late .Xt|
|00004270| 68 65 20 73 6f 75 6e 64 | 20 64 75 72 69 6e 67 20 |he sound| during |
|00004280| 70 6c 61 79 62 61 63 6b | 2e 20 49 74 27 73 20 65 |playback|. It's e|
|00004290| 73 70 65 63 69 61 6c 6c | 79 20 75 73 65 66 75 6c |speciall|y useful|
|000042a0| 20 66 6f 72 20 70 6c 61 | 79 69 6e 67 20 6d 75 73 | for pla|ying mus|
|000042b0| 69 63 61 6c 20 0a 58 6e | 6f 74 65 73 20 6f 66 20 |ical .Xn|otes of |
|000042c0| 76 61 72 69 61 62 6c 65 | 20 64 75 72 61 74 69 6f |variable| duratio|
|000042d0| 6e 73 2e 20 50 6c 61 79 | 62 61 63 6b 20 70 72 6f |ns. Play|back pro|
|000042e0| 67 72 61 6d 73 20 6d 61 | 79 20 69 67 6e 6f 72 65 |grams ma|y ignore|
|000042f0| 20 74 68 65 20 73 75 70 | 70 6c 69 65 64 20 0a 58 | the sup|plied .X|
|00004300| 65 6e 76 65 6c 6f 70 65 | 20 6f 72 20 73 75 62 73 |envelope| or subs|
|00004310| 74 69 74 75 74 65 20 61 | 6e 6f 74 68 65 72 2e 0a |titute a|nother..|
|00004320| 58 0a 58 23 64 65 66 69 | 6e 65 20 49 44 5f 41 54 |X.X#defi|ne ID_AT|
|00004330| 41 4b 20 4d 61 6b 65 49 | 44 28 27 41 27 2c 20 27 |AK MakeI|D('A', '|
|00004340| 54 27 2c 20 27 41 27 2c | 20 27 4b 27 29 0a 58 23 |T', 'A',| 'K').X#|
|00004350| 64 65 66 69 6e 65 20 49 | 44 5f 52 4c 53 45 20 4d |define I|D_RLSE M|
|00004360| 61 6b 65 49 44 28 27 52 | 27 2c 20 27 4c 27 2c 20 |akeID('R|', 'L', |
|00004370| 27 53 27 2c 20 27 45 27 | 29 0a 58 0a 58 74 79 70 |'S', 'E'|).X.Xtyp|
|00004380| 65 64 65 66 20 73 74 72 | 75 63 74 20 7b 0a 58 09 |edef str|uct {.X.|
|00004390| 55 57 4f 52 44 20 64 75 | 72 61 74 69 6f 6e 3b 09 |UWORD du|ration;.|
|000043a0| 2f 2a 20 73 65 67 6d 65 | 6e 74 20 64 75 72 61 74 |/* segme|nt durat|
|000043b0| 69 6f 6e 20 69 6e 20 6d | 69 6c 6c 69 73 65 63 6f |ion in m|illiseco|
|000043c0| 6e 64 73 2c 20 3e 20 30 | 09 2a 2f 0a 58 09 46 69 |nds, > 0|.*/.X.Fi|
|000043d0| 78 65 64 20 64 65 73 74 | 3b 09 2f 2a 20 64 65 73 |xed dest|;./* des|
|000043e0| 74 69 6e 61 74 69 6f 6e | 20 76 6f 6c 75 6d 65 20 |tination| volume |
|000043f0| 66 61 63 74 6f 72 09 2a | 2f 0a 58 09 7d 20 45 47 |factor.*|/.X.} EG|
|00004400| 50 6f 69 6e 74 3b 0a 58 | 0a 58 2f 2a 20 41 54 41 |Point;.X|.X/* ATA|
|00004410| 4b 20 61 6e 64 20 52 4c | 53 45 20 63 68 75 6e 6b |K and RL|SE chunk|
|00004420| 73 20 63 6f 6e 74 61 69 | 6e 20 61 6e 20 45 47 50 |s contai|n an EGP|
|00004430| 6f 69 6e 74 5b 5d 2c 20 | 70 69 65 63 65 77 69 73 |oint[], |piecewis|
|00004440| 65 2d 6c 69 6e 65 61 72 | 20 65 6e 76 65 6c 6f 70 |e-linear| envelop|
|00004450| 65 2e 2a 2f 20 0a 58 2f | 2a 20 54 68 65 20 65 6e |e.*/ .X/|* The en|
|00004460| 76 65 6c 6f 70 65 20 64 | 65 66 69 6e 65 73 20 61 |velope d|efines a|
|00004470| 20 66 75 6e 63 74 69 6f | 6e 20 6f 66 20 74 69 6d | functio|n of tim|
|00004480| 65 20 72 65 74 75 72 6e | 69 6e 67 20 46 69 78 65 |e return|ing Fixe|
|00004490| 64 20 76 61 6c 75 65 73 | 2e 20 49 74 27 73 0a 58 |d values|. It's.X|
|000044a0| 20 2a 20 75 73 65 64 20 | 74 6f 20 73 63 61 6c 65 | * used |to scale|
|000044b0| 20 74 68 65 20 6e 6f 6d | 69 6e 61 6c 20 76 6f 6c | the nom|inal vol|
|000044c0| 75 6d 65 20 73 70 65 63 | 69 66 69 65 64 20 69 6e |ume spec|ified in|
|000044d0| 20 74 68 65 20 56 6f 69 | 63 65 38 48 65 61 64 65 | the Voi|ce8Heade|
|000044e0| 72 2e 20 2a 2f 0a 58 0a | 58 54 6f 20 65 78 70 6c |r. */.X.|XTo expl|
|000044f0| 61 69 6e 20 74 68 65 20 | 6d 65 61 6e 69 6e 67 20 |ain the |meaning |
|00004500| 6f 66 20 74 68 65 20 41 | 54 41 4b 20 61 6e 64 20 |of the A|TAK and |
|00004510| 52 4c 53 45 20 63 68 75 | 6e 6b 73 2c 20 77 65 27 |RLSE chu|nks, we'|
|00004520| 6c 6c 20 6f 76 65 72 76 | 69 65 77 20 0a 58 74 68 |ll overv|iew .Xth|
|00004530| 65 20 65 6e 76 65 6c 6f | 70 65 20 67 65 6e 65 72 |e envelo|pe gener|
|00004540| 61 74 69 6f 6e 20 61 6c | 67 6f 72 69 74 68 6d 2e |ation al|gorithm.|
|00004550| 20 53 74 61 72 74 20 61 | 74 20 30 20 76 6f 6c 75 | Start a|t 0 volu|
|00004560| 6d 65 2c 20 73 74 65 70 | 20 74 68 72 6f 75 67 68 |me, step| through|
|00004570| 20 0a 58 74 68 65 20 41 | 54 41 4b 20 63 6f 6e 74 | .Xthe A|TAK cont|
|00004580| 6f 75 72 2c 20 74 68 65 | 6e 20 68 6f 6c 64 20 61 |our, the|n hold a|
|00004590| 74 20 74 68 65 20 73 75 | 73 74 61 69 6e 20 6c 65 |t the su|stain le|
|000045a0| 76 65 6c 20 28 74 68 65 | 20 6c 61 73 74 20 41 54 |vel (the| last AT|
|000045b0| 41 4b 20 45 47 50 6f 69 | 6e 74 27 73 20 0a 58 64 |AK EGPoi|nt's .Xd|
|000045c0| 65 73 74 29 2c 20 61 6e | 64 20 74 68 65 6e 20 73 |est), an|d then s|
|000045d0| 74 65 70 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |tep thro|ugh the |
|000045e0| 52 4c 53 45 20 63 6f 6e | 74 6f 75 72 2e 20 42 65 |RLSE con|tour. Be|
|000045f0| 67 69 6e 20 74 68 65 20 | 72 65 6c 65 61 73 65 20 |gin the |release |
|00004600| 61 74 20 0a 58 74 68 65 | 20 64 65 73 69 72 65 64 |at .Xthe| desired|
|00004610| 20 6e 6f 74 65 20 73 74 | 6f 70 20 74 69 6d 65 20 | note st|op time |
|00004620| 6d 69 6e 75 73 20 74 68 | 65 20 74 6f 74 61 6c 20 |minus th|e total |
|00004630| 64 75 72 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |duration| of the |
|00004640| 72 65 6c 65 61 73 65 20 | 0a 58 63 6f 6e 74 6f 75 |release |.Xcontou|
|00004650| 72 20 28 74 68 65 20 73 | 75 6d 20 6f 66 20 74 68 |r (the s|um of th|
|00004660| 65 20 52 4c 53 45 20 45 | 47 50 6f 69 6e 74 73 27 |e RLSE E|GPoints'|
|00004670| 20 64 75 72 61 74 69 6f | 6e 73 29 2e 20 54 68 65 | duratio|ns). The|
|00004680| 20 61 74 74 61 63 6b 20 | 63 6f 6e 74 6f 75 72 20 | attack |contour |
|00004690| 0a 58 73 68 6f 75 6c 64 | 20 62 65 20 63 75 74 20 |.Xshould| be cut |
|000046a0| 73 68 6f 72 74 20 69 66 | 20 74 68 65 20 6e 6f 74 |short if| the not|
|000046b0| 65 20 69 73 20 73 68 6f | 72 74 65 72 20 74 68 61 |e is sho|rter tha|
|000046c0| 6e 20 74 68 65 20 72 65 | 6c 65 61 73 65 20 63 6f |n the re|lease co|
|000046d0| 6e 74 6f 75 72 2e 0a 58 | 0a 58 54 68 65 20 65 6e |ntour..X|.XThe en|
|000046e0| 76 65 6c 6f 70 65 20 69 | 73 20 61 20 70 69 65 63 |velope i|s a piec|
|000046f0| 65 77 69 73 65 2d 6c 69 | 6e 65 61 72 20 66 75 6e |ewise-li|near fun|
|00004700| 63 74 69 6f 6e 2e 20 54 | 68 65 20 65 6e 76 65 6c |ction. T|he envel|
|00004710| 6f 70 65 20 67 65 6e 65 | 72 61 74 6f 72 20 0a 58 |ope gene|rator .X|
|00004720| 69 6e 74 65 72 70 6f 6c | 61 74 65 73 20 62 65 74 |interpol|ates bet|
|00004730| 77 65 65 6e 20 74 68 65 | 20 45 47 50 6f 69 6e 74 |ween the| EGPoint|
|00004740| 73 2e 0a 58 0a 58 52 65 | 6d 65 6d 62 65 72 20 74 |s..X.XRe|member t|
|00004750| 6f 20 6d 75 6c 74 69 70 | 6c 79 20 74 68 65 20 65 |o multip|ly the e|
|00004760| 6e 76 65 6c 6f 70 65 20 | 66 75 6e 63 74 69 6f 6e |nvelope |function|
|00004770| 20 62 79 20 74 68 65 20 | 6e 6f 6d 69 6e 61 6c 20 | by the |nominal |
|00004780| 76 6f 69 63 65 20 68 65 | 61 64 65 72 20 0a 58 76 |voice he|ader .Xv|
|00004790| 6f 6c 75 6d 65 20 61 6e | 64 20 62 79 20 61 6e 79 |olume an|d by any|
|000047a0| 20 64 65 73 69 72 65 64 | 20 6e 6f 74 65 20 76 6f | desired| note vo|
|000047b0| 6c 75 6d 65 2e 0a 58 0a | 58 46 69 67 75 72 65 20 |lume..X.|XFigure |
|000047c0| 31 20 73 68 6f 77 73 20 | 61 6e 20 65 78 61 6d 70 |1 shows |an examp|
|000047d0| 6c 65 20 65 6e 76 65 6c | 6f 70 65 2e 20 54 68 65 |le envel|ope. The|
|000047e0| 20 61 74 74 61 63 6b 20 | 70 65 72 69 6f 64 20 69 | attack |period i|
|000047f0| 73 20 64 65 73 63 72 69 | 62 65 64 20 0a 58 62 79 |s descri|bed .Xby|
|00004800| 20 34 20 45 47 50 6f 69 | 6e 74 73 20 69 6e 20 61 | 4 EGPoi|nts in a|
|00004810| 6e 20 41 54 41 4b 20 63 | 68 75 6e 6b 2e 20 54 68 |n ATAK c|hunk. Th|
|00004820| 65 20 72 65 6c 65 61 73 | 65 20 70 65 72 69 6f 64 |e releas|e period|
|00004830| 20 69 73 20 64 65 73 63 | 72 69 62 65 64 20 62 79 | is desc|ribed by|
|00004840| 20 0a 58 34 20 45 47 50 | 6f 69 6e 74 73 20 69 6e | .X4 EGP|oints in|
|00004850| 20 61 20 52 4c 53 45 20 | 63 68 75 6e 6b 2e 20 54 | a RLSE |chunk. T|
|00004860| 68 65 20 73 75 73 74 61 | 69 6e 20 70 65 72 69 6f |he susta|in perio|
|00004870| 64 20 69 6e 20 74 68 65 | 20 6d 69 64 64 6c 65 20 |d in the| middle |
|00004880| 6a 75 73 74 20 0a 58 68 | 6f 6c 64 73 20 74 68 65 |just .Xh|olds the|
|00004890| 20 66 69 6e 61 6c 20 41 | 54 41 4b 20 6c 65 76 65 | final A|TAK leve|
|000048a0| 6c 20 75 6e 74 69 6c 20 | 69 74 27 73 20 74 69 6d |l until |it's tim|
|000048b0| 65 20 66 6f 72 20 74 68 | 65 20 72 65 6c 65 61 73 |e for th|e releas|
|000048c0| 65 2e 0a 58 0a 58 0c 0a | 58 0a 58 0a 58 0a 58 0a |e..X.X..|X.X.X.X.|
|000048d0| 58 0a 58 0a 58 0a 58 0a | 58 09 09 09 46 69 67 75 |X.X.X.X.|X...Figu|
|000048e0| 72 65 20 31 2e 20 41 6d | 70 6c 69 74 75 64 65 20 |re 1. Am|plitude |
|000048f0| 63 6f 6e 74 6f 75 72 2e | 0a 58 0a 58 4e 6f 74 65 |contour.|.X.XNote|
|00004900| 3a 20 54 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |: The nu|mber of |
|00004910| 45 47 50 6f 69 6e 74 73 | 20 69 6e 20 61 6e 20 41 |EGPoints| in an A|
|00004920| 54 41 4b 20 6f 72 20 52 | 4c 53 45 20 63 68 75 6e |TAK or R|LSE chun|
|00004930| 6b 20 69 73 20 69 74 73 | 20 63 6b 53 69 7a 65 20 |k is its| ckSize |
|00004940| 0a 58 2f 20 73 69 7a 65 | 6f 66 28 45 47 50 6f 69 |.X/ size|of(EGPoi|
|00004950| 6e 74 29 2e 20 49 6e 20 | 52 41 4d 2c 20 74 68 65 |nt). In |RAM, the|
|00004960| 20 70 6c 61 79 62 61 63 | 6b 20 70 72 6f 67 72 61 | playbac|k progra|
|00004970| 6d 20 6d 61 79 20 74 65 | 72 6d 69 6e 61 74 65 20 |m may te|rminate |
|00004980| 74 68 65 20 0a 58 61 72 | 72 61 79 20 77 69 74 68 |the .Xar|ray with|
|00004990| 20 61 20 30 20 64 75 72 | 61 74 69 6f 6e 20 45 47 | a 0 dur|ation EG|
|000049a0| 50 6f 69 6e 74 2e 0a 58 | 0a 58 49 73 73 75 65 3a |Point..X|.XIssue:|
|000049b0| 20 53 79 6e 74 68 65 73 | 69 7a 65 72 73 20 61 6c | Synthes|izers al|
|000049c0| 73 6f 20 70 72 6f 76 69 | 64 65 20 66 72 65 71 75 |so provi|de frequ|
|000049d0| 65 6e 63 79 20 63 6f 6e | 74 6f 75 72 20 28 70 69 |ency con|tour (pi|
|000049e0| 74 63 68 20 62 65 6e 64 | 29 2c 20 66 69 6c 74 65 |tch bend|), filte|
|000049f0| 72 69 6e 67 20 0a 58 63 | 6f 6e 74 6f 75 72 20 28 |ring .Xc|ontour (|
|00004a00| 77 61 68 2d 77 61 68 29 | 2c 20 61 6d 70 6c 69 74 |wah-wah)|, amplit|
|00004a10| 75 64 65 20 6f 73 63 69 | 6c 6c 61 74 69 6f 6e 20 |ude osci|llation |
|00004a20| 28 74 72 65 6d 6f 6c 6f | 29 2c 20 66 72 65 71 75 |(tremolo|), frequ|
|00004a30| 65 6e 63 79 20 6f 73 63 | 69 6c 6c 61 74 69 6f 6e |ency osc|illation|
|00004a40| 20 0a 58 28 76 69 62 72 | 61 74 6f 29 2c 20 61 6e | .X(vibr|ato), an|
|00004a50| 64 20 66 69 6c 74 65 72 | 69 6e 67 20 6f 73 63 69 |d filter|ing osci|
|00004a60| 6c 6c 61 74 69 6f 6e 20 | 28 6c 65 73 6c 69 65 29 |llation |(leslie)|
|00004a70| 2e 20 49 6e 20 74 68 65 | 20 66 75 74 75 72 65 2c |. In the| future,|
|00004a80| 20 77 65 20 6d 61 79 20 | 0a 58 64 65 66 69 6e 65 | we may |.Xdefine|
|00004a90| 20 6f 70 74 69 6f 6e 61 | 6c 20 63 68 75 6e 6b 73 | optiona|l chunks|
|00004aa0| 20 74 6f 20 65 6e 63 6f | 64 65 20 74 68 65 73 65 | to enco|de these|
|00004ab0| 20 6d 6f 64 75 6c 61 74 | 69 6f 6e 73 2e 20 54 68 | modulat|ions. Th|
|00004ac0| 65 20 63 6f 6e 74 6f 75 | 72 73 20 63 61 6e 20 0a |e contou|rs can .|
|00004ad0| 58 62 65 20 65 6e 63 6f | 64 65 64 20 69 6e 20 6c |Xbe enco|ded in l|
|00004ae0| 69 6e 65 61 72 20 73 65 | 67 6d 65 6e 74 73 2e 20 |inear se|gments. |
|00004af0| 54 68 65 20 6f 73 63 69 | 6c 6c 61 74 69 6f 6e 73 |The osci|llations|
|00004b00| 20 63 61 6e 20 62 65 20 | 73 74 6f 72 65 64 20 61 | can be |stored a|
|00004b10| 73 20 73 65 67 6d 65 6e | 74 73 20 0a 58 77 69 74 |s segmen|ts .Xwit|
|00004b20| 68 20 72 61 74 65 20 61 | 6e 64 20 64 65 70 74 68 |h rate a|nd depth|
|00004b30| 20 70 61 72 61 6d 65 74 | 65 72 73 2e 0a 58 0a 58 | paramet|ers..X.X|
|00004b40| 44 61 74 61 20 43 68 75 | 6e 6b 20 42 4f 44 59 0a |Data Chu|nk BODY.|
|00004b50| 58 0a 58 54 68 65 20 42 | 4f 44 59 20 63 68 75 6e |X.XThe B|ODY chun|
|00004b60| 6b 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 61 |k contai|ns the a|
|00004b70| 75 64 69 6f 20 64 61 74 | 61 20 73 61 6d 70 6c 65 |udio dat|a sample|
|00004b80| 73 2e 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 49 44 |s..X.X#d|efine ID|
|00004b90| 5f 42 4f 44 59 20 4d 61 | 6b 65 49 44 28 27 42 27 |_BODY Ma|keID('B'|
|00004ba0| 2c 20 27 4f 27 2c 20 27 | 44 27 2c 20 27 59 27 29 |, 'O', '|D', 'Y')|
|00004bb0| 0a 58 0a 58 74 79 70 65 | 64 65 66 20 63 68 61 72 |.X.Xtype|def char|
|00004bc0| 61 63 74 65 72 20 42 59 | 54 45 3b 09 2f 2a 20 38 |acter BY|TE;./* 8|
|00004bd0| 20 62 69 74 20 73 69 67 | 6e 65 64 20 6e 75 6d 62 | bit sig|ned numb|
|00004be0| 65 72 2c 20 2d 31 32 38 | 20 74 68 72 6f 75 67 68 |er, -128| through|
|00004bf0| 20 31 32 37 2e 09 2a 2f | 0a 58 0a 58 2f 2a 20 42 | 127..*/|.X.X/* B|
|00004c00| 4f 44 59 20 63 68 75 6e | 6b 20 63 6f 6e 74 61 69 |ODY chun|k contai|
|00004c10| 6e 73 20 61 20 42 59 54 | 45 5b 5d 2c 20 61 72 72 |ns a BYT|E[], arr|
|00004c20| 61 79 20 6f 66 20 61 75 | 64 69 6f 20 64 61 74 61 |ay of au|dio data|
|00004c30| 20 73 61 6d 70 6c 65 73 | 2e 09 2a 2f 0a 58 0a 58 | samples|..*/.X.X|
|00004c40| 54 68 65 20 42 4f 44 59 | 20 63 6f 6e 74 61 69 6e |The BODY| contain|
|00004c50| 73 20 64 61 74 61 20 73 | 61 6d 70 6c 65 73 20 67 |s data s|amples g|
|00004c60| 72 6f 75 70 65 64 20 62 | 79 20 6f 63 74 61 76 65 |rouped b|y octave|
|00004c70| 2e 20 57 69 74 68 69 6e | 20 65 61 63 68 20 6f 63 |. Within| each oc|
|00004c80| 74 61 76 65 20 0a 58 61 | 72 65 20 6f 6e 65 2d 73 |tave .Xa|re one-s|
|00004c90| 68 6f 74 20 61 6e 64 20 | 72 65 70 65 61 74 20 70 |hot and |repeat p|
|00004ca0| 6f 72 74 69 6f 6e 73 2e | 20 46 69 67 75 72 65 20 |ortions.| Figure |
|00004cb0| 32 20 64 65 70 69 63 74 | 73 20 74 68 69 73 20 61 |2 depict|s this a|
|00004cc0| 72 72 61 6e 67 65 6d 65 | 6e 74 20 0a 58 6f 66 20 |rrangeme|nt .Xof |
|00004cd0| 73 61 6d 70 6c 65 73 20 | 66 6f 72 20 61 6e 20 38 |samples |for an 8|
|00004ce0| 53 56 58 20 77 68 65 72 | 65 20 6f 6e 65 53 68 6f |SVX wher|e oneSho|
|00004cf0| 74 48 69 53 61 6d 70 6c | 65 73 20 3d 20 32 34 2c |tHiSampl|es = 24,|
|00004d00| 20 72 65 70 65 61 74 48 | 69 53 61 6d 70 6c 65 73 | repeatH|iSamples|
|00004d10| 20 0a 58 3d 20 31 36 2c | 20 73 61 6d 70 6c 65 73 | .X= 16,| samples|
|00004d20| 50 65 72 48 69 43 79 63 | 6c 65 20 3d 20 38 2c 20 |PerHiCyc|le = 8, |
|00004d30| 61 6e 64 20 63 74 4f 63 | 74 61 76 65 20 3d 20 33 |and ctOc|tave = 3|
|00004d40| 2e 20 54 68 65 20 6d 61 | 6a 6f 72 20 64 69 76 69 |. The ma|jor divi|
|00004d50| 73 69 6f 6e 73 20 0a 58 | 61 72 65 20 6f 63 74 61 |sions .X|are octa|
|00004d60| 76 65 73 2c 20 74 68 65 | 20 69 6e 74 65 72 6d 65 |ves, the| interme|
|00004d70| 64 69 61 74 65 20 64 69 | 76 69 73 69 6f 6e 73 20 |diate di|visions |
|00004d80| 73 65 70 61 72 61 74 65 | 20 74 68 65 20 6f 6e 65 |separate| the one|
|00004d90| 2d 73 68 6f 74 20 61 6e | 64 20 0a 58 72 65 70 65 |-shot an|d .Xrepe|
|00004da0| 61 74 20 70 6f 72 74 69 | 6f 6e 73 2c 20 61 6e 64 |at porti|ons, and|
|00004db0| 20 74 68 65 20 6d 69 6e | 6f 72 20 64 69 76 69 73 | the min|or divis|
|00004dc0| 69 6f 6e 73 20 61 72 65 | 20 63 79 63 6c 65 73 2e |ions are| cycles.|
|00004dd0| 0a 58 0a 58 0c 0a 58 0a | 58 0a 58 0a 58 0a 58 0a |.X.X..X.|X.X.X.X.|
|00004de0| 58 0a 58 0a 58 09 09 09 | 46 69 67 75 72 65 20 32 |X.X.X...|Figure 2|
|00004df0| 2e 20 42 4f 44 59 20 73 | 75 62 64 69 76 69 73 69 |. BODY s|ubdivisi|
|00004e00| 6f 6e 73 2e 0a 58 0a 58 | 49 6e 20 67 65 6e 65 72 |ons..X.X|In gener|
|00004e10| 61 6c 2c 20 74 68 65 20 | 42 4f 44 59 20 68 61 73 |al, the |BODY has|
|00004e20| 20 63 74 4f 63 74 61 76 | 65 20 6f 63 74 61 76 65 | ctOctav|e octave|
|00004e30| 73 20 6f 66 20 64 61 74 | 61 2e 20 54 68 65 20 68 |s of dat|a. The h|
|00004e40| 69 67 68 65 73 74 20 66 | 72 65 71 75 65 6e 63 79 |ighest f|requency|
|00004e50| 20 0a 58 6f 63 74 61 76 | 65 20 63 6f 6d 65 73 20 | .Xoctav|e comes |
|00004e60| 66 69 72 73 74 2c 20 63 | 6f 6d 70 72 69 73 69 6e |first, c|omprisin|
|00004e70| 67 20 74 68 65 20 66 65 | 77 65 73 74 20 73 61 6d |g the fe|west sam|
|00004e80| 70 6c 65 73 3a 20 6f 6e | 65 53 68 6f 74 48 69 53 |ples: on|eShotHiS|
|00004e90| 61 6d 70 6c 65 73 20 0a | 58 2b 20 72 65 70 65 61 |amples .|X+ repea|
|00004ea0| 74 48 69 53 61 6d 70 6c | 65 73 2e 20 45 61 63 68 |tHiSampl|es. Each|
|00004eb0| 20 73 75 63 63 65 73 73 | 69 76 65 20 6f 63 74 61 | success|ive octa|
|00004ec0| 76 65 20 63 6f 6e 74 61 | 69 6e 73 20 74 77 69 63 |ve conta|ins twic|
|00004ed0| 65 20 61 73 20 6d 61 6e | 79 20 73 61 6d 70 6c 65 |e as man|y sample|
|00004ee0| 73 20 0a 58 61 73 20 74 | 68 65 20 6e 65 78 74 20 |s .Xas t|he next |
|00004ef0| 68 69 67 68 65 72 20 6f | 63 74 61 76 65 20 62 75 |higher o|ctave bu|
|00004f00| 74 20 74 68 65 20 73 61 | 6d 65 20 6e 75 6d 62 65 |t the sa|me numbe|
|00004f10| 72 20 6f 66 20 63 79 63 | 6c 65 73 2e 20 54 68 65 |r of cyc|les. The|
|00004f20| 20 6c 6f 77 65 73 74 20 | 0a 58 66 72 65 71 75 65 | lowest |.Xfreque|
|00004f30| 6e 63 79 20 6f 63 74 61 | 76 65 20 63 6f 6d 65 73 |ncy octa|ve comes|
|00004f40| 20 6c 61 73 74 20 77 69 | 74 68 20 74 68 65 20 6d | last wi|th the m|
|00004f50| 6f 73 74 20 73 61 6d 70 | 6c 65 73 3a 20 32 63 74 |ost samp|les: 2ct|
|00004f60| 4f 63 74 61 76 65 2d 31 | 20 2a 20 28 6f 6e 65 53 |Octave-1| * (oneS|
|00004f70| 68 6f 74 48 69 53 61 6d | 70 0a 58 6c 65 73 20 2b |hotHiSam|p.Xles +|
|00004f80| 20 72 65 70 65 61 74 48 | 69 53 61 6d 70 6c 65 73 | repeatH|iSamples|
|00004f90| 29 2e 0a 58 0a 58 54 68 | 65 20 6e 75 6d 62 65 72 |)..X.XTh|e number|
|00004fa0| 20 6f 66 20 73 61 6d 70 | 6c 65 73 20 69 6e 20 74 | of samp|les in t|
|00004fb0| 68 65 20 42 4f 44 59 20 | 63 68 75 6e 6b 20 69 73 |he BODY |chunk is|
|00004fc0| 0a 58 0a 58 20 20 30 20 | 20 20 20 20 20 20 20 20 |.X.X 0 | |
|00004fd0| 20 28 63 74 4f 63 74 61 | 76 65 2d 31 29 20 0a 58 | (ctOcta|ve-1) .X|
|00004fe0| 28 32 20 20 2b 20 2e 2e | 2e 20 2b 20 32 09 20 20 |(2 + ..|. + 2. |
|00004ff0| 20 20 20 20 20 20 20 20 | 2a 20 28 6f 6e 65 53 68 | |* (oneSh|
|00005000| 6f 74 48 69 53 61 6d 70 | 6c 65 73 20 2b 20 72 65 |otHiSamp|les + re|
|00005010| 70 65 61 74 48 69 53 61 | 6d 70 6c 65 73 29 0a 58 |peatHiSa|mples).X|
|00005020| 0a 58 46 69 67 75 72 65 | 20 33 2c 20 62 65 6c 6f |.XFigure| 3, belo|
|00005030| 77 2c 20 6c 6f 6f 6b 73 | 20 63 6c 6f 73 65 72 20 |w, looks| closer |
|00005040| 61 74 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 77 61 |at an ex|ample wa|
|00005050| 76 65 66 6f 72 6d 20 77 | 69 74 68 69 6e 20 6f 6e |veform w|ithin on|
|00005060| 65 20 6f 63 74 61 76 65 | 20 0a 58 6f 66 20 61 20 |e octave| .Xof a |
|00005070| 64 69 66 66 65 72 65 6e | 74 20 42 4f 44 59 20 63 |differen|t BODY c|
|00005080| 68 75 6e 6b 2e 20 49 6e | 20 74 68 69 73 20 65 78 |hunk. In| this ex|
|00005090| 61 6d 70 6c 65 2c 20 6f | 6e 65 53 68 6f 74 48 69 |ample, o|neShotHi|
|000050a0| 53 61 6d 70 6c 65 73 20 | 2f 20 73 61 6d 70 6c 65 |Samples |/ sample|
|000050b0| 73 50 65 72 48 69 43 79 | 63 6c 0a 58 65 20 3d 20 |sPerHiCy|cl.Xe = |
|000050c0| 32 20 63 79 63 6c 65 73 | 20 61 6e 64 20 72 65 70 |2 cycles| and rep|
|000050d0| 65 61 74 48 69 53 61 6d | 70 6c 65 73 20 2f 20 73 |eatHiSam|ples / s|
|000050e0| 61 6d 70 6c 65 73 50 65 | 72 48 69 43 79 63 6c 65 |amplesPe|rHiCycle|
|000050f0| 20 3d 20 31 20 63 79 63 | 6c 65 2e 0a 58 0a 58 0c | = 1 cyc|le..X.X.|
|00005100| 0a 58 0a 58 0a 58 0a 58 | 0a 58 0a 58 0a 58 0a 58 |.X.X.X.X|.X.X.X.X|
|00005110| 09 09 09 46 69 67 75 72 | 65 20 33 2e 20 45 78 61 |...Figur|e 3. Exa|
|00005120| 6d 70 6c 65 20 77 61 76 | 65 66 6f 72 6d 2e 0a 58 |mple wav|eform..X|
|00005130| 0a 58 54 6f 20 61 76 6f | 69 64 20 70 6c 61 79 62 |.XTo avo|id playb|
|00005140| 61 63 6b 20 22 63 6c 69 | 63 6b 73 22 2c 20 74 68 |ack "cli|cks", th|
|00005150| 65 20 6f 6e 65 2d 73 68 | 6f 74 20 70 61 72 74 20 |e one-sh|ot part |
|00005160| 73 68 6f 75 6c 64 20 62 | 65 67 69 6e 20 77 69 74 |should b|egin wit|
|00005170| 68 20 61 20 0a 58 73 6d | 61 6c 6c 20 73 61 6d 70 |h a .Xsm|all samp|
|00005180| 6c 65 20 76 61 6c 75 65 | 2c 20 61 6e 64 20 74 68 |le value|, and th|
|00005190| 65 20 6f 6e 65 2d 73 68 | 6f 74 20 70 61 72 74 20 |e one-sh|ot part |
|000051a0| 73 68 6f 75 6c 64 20 66 | 6c 6f 77 20 73 6d 6f 6f |should f|low smoo|
|000051b0| 74 68 6c 79 20 69 6e 74 | 6f 20 0a 58 74 68 65 20 |thly int|o .Xthe |
|000051c0| 72 65 70 65 61 74 20 70 | 61 72 74 2c 20 61 6e 64 |repeat p|art, and|
|000051d0| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|000051e0| 72 65 70 65 61 74 20 70 | 61 72 74 20 73 68 6f 75 |repeat p|art shou|
|000051f0| 6c 64 20 66 6c 6f 77 20 | 73 6d 6f 6f 74 68 6c 79 |ld flow |smoothly|
|00005200| 20 0a 58 69 6e 74 6f 20 | 74 68 65 20 62 65 67 69 | .Xinto |the begi|
|00005210| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 72 65 70 |nning of| the rep|
|00005220| 65 61 74 20 70 61 72 74 | 2e 0a 58 0a 58 49 66 20 |eat part|..X.XIf |
|00005230| 74 68 65 20 56 48 44 52 | 20 66 69 65 6c 64 20 73 |the VHDR| field s|
|00005240| 43 6f 6d 70 72 65 73 73 | 69 6f 6e 20 2d 20 73 43 |Compress|ion - sC|
|00005250| 6d 70 4e 6f 6e 65 2c 20 | 74 68 65 20 42 4f 44 59 |mpNone, |the BODY|
|00005260| 20 63 68 75 6e 6b 20 69 | 73 20 6a 75 73 74 20 0a | chunk i|s just .|
|00005270| 58 61 6e 20 61 72 72 61 | 79 20 6f 66 20 64 61 74 |Xan arra|y of dat|
|00005280| 61 20 62 79 74 65 73 20 | 74 6f 20 66 65 65 64 20 |a bytes |to feed |
|00005290| 74 68 72 6f 75 67 68 20 | 74 68 65 20 73 70 65 63 |through |the spec|
|000052a0| 69 66 69 65 64 20 64 65 | 63 6f 6d 70 72 65 73 73 |ified de|compress|
|000052b0| 65 72 20 0a 58 66 75 6e | 63 74 69 6f 6e 2e 20 41 |er .Xfun|ction. A|
|000052c0| 6c 6c 20 74 68 69 73 20 | 73 74 75 66 66 20 61 62 |ll this |stuff ab|
|000052d0| 6f 75 74 20 73 61 6d 70 | 6c 65 20 73 69 7a 65 73 |out samp|le sizes|
|000052e0| 2c 20 6f 63 74 61 76 65 | 73 2c 20 61 6e 64 20 72 |, octave|s, and r|
|000052f0| 65 70 65 61 74 20 70 61 | 72 74 73 20 0a 58 61 70 |epeat pa|rts .Xap|
|00005300| 70 6c 69 65 73 20 74 6f | 20 74 68 65 20 64 65 63 |plies to| the dec|
|00005310| 6f 6d 70 72 65 73 73 65 | 64 20 64 61 74 61 2e 0a |ompresse|d data..|
|00005320| 58 0a 58 42 65 20 73 75 | 72 65 20 74 6f 20 66 6f |X.XBe su|re to fo|
|00005330| 6c 6c 6f 77 20 61 6e 20 | 6f 64 64 2d 6c 65 6e 67 |llow an |odd-leng|
|00005340| 74 68 20 42 4f 44 59 20 | 63 68 75 6e 6b 20 77 69 |th BODY |chunk wi|
|00005350| 74 68 20 61 20 30 20 70 | 61 64 20 62 79 74 65 2e |th a 0 p|ad byte.|
|00005360| 0a 58 0a 58 4f 74 68 65 | 72 20 43 68 75 6e 6b 73 |.X.XOthe|r Chunks|
|00005370| 0a 58 0a 58 49 73 73 75 | 65 3a 20 49 6e 20 74 68 |.X.XIssu|e: In th|
|00005380| 65 20 66 75 74 75 72 65 | 2c 20 77 65 20 6d 61 79 |e future|, we may|
|00005390| 20 64 65 66 69 6e 65 20 | 61 6e 20 6f 70 74 69 6f | define |an optio|
|000053a0| 6e 61 6c 20 63 68 75 6e | 6b 20 63 6f 6e 74 61 69 |nal chun|k contai|
|000053b0| 6e 69 6e 67 20 46 6f 75 | 72 69 65 72 20 0a 58 73 |ning Fou|rier .Xs|
|000053c0| 65 72 69 65 73 20 63 6f | 65 66 66 69 63 69 65 6e |eries co|efficien|
|000053d0| 74 73 20 66 6f 72 20 61 | 20 72 65 70 65 61 74 69 |ts for a| repeati|
|000053e0| 6e 67 20 77 61 76 65 66 | 6f 72 6d 2e 20 41 6e 20 |ng wavef|orm. An |
|000053f0| 65 64 69 74 6f 72 20 66 | 6f 72 20 74 68 69 73 20 |editor f|or this |
|00005400| 6b 69 6e 64 20 0a 58 6f | 66 20 73 79 6e 74 68 65 |kind .Xo|f synthe|
|00005410| 73 69 7a 65 64 20 76 6f | 69 63 65 20 63 6f 75 6c |sized vo|ice coul|
|00005420| 64 20 6d 6f 64 69 66 79 | 20 74 68 65 20 63 6f 65 |d modify| the coe|
|00005430| 66 66 69 63 69 65 6e 74 | 73 20 61 6e 64 20 72 65 |fficient|s and re|
|00005440| 67 65 6e 65 72 61 74 65 | 20 0a 58 74 68 65 20 77 |generate| .Xthe w|
|00005450| 61 76 65 66 6f 72 6d 2e | 0a 58 0a 58 0a 58 0c 0a |aveform.|.X.X.X..|
|00005460| 58 41 70 70 65 6e 64 69 | 78 20 41 2e 20 51 75 69 |XAppendi|x A. Qui|
|00005470| 63 6b 20 52 65 66 65 72 | 65 6e 63 65 0a 58 0a 58 |ck Refer|ence.X.X|
|00005480| 54 79 70 65 20 44 65 66 | 69 6e 69 74 69 6f 6e 73 |Type Def|initions|
|00005490| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 49 44 5f 38 |.X.X#def|ine ID_8|
|000054a0| 53 56 58 20 4d 61 6b 65 | 49 44 28 27 38 27 2c 20 |SVX Make|ID('8', |
|000054b0| 27 53 27 2c 20 27 56 27 | 2c 20 27 58 27 29 0a 58 |'S', 'V'|, 'X').X|
|000054c0| 23 64 65 66 69 6e 65 20 | 49 44 5f 56 48 44 52 20 |#define |ID_VHDR |
|000054d0| 4d 61 6b 65 49 44 28 27 | 56 27 2c 20 27 48 27 2c |MakeID('|V', 'H',|
|000054e0| 20 27 44 27 2c 20 27 52 | 27 29 0a 58 0a 58 74 79 | 'D', 'R|').X.Xty|
|000054f0| 70 65 64 65 66 20 4c 4f | 4e 47 20 46 69 78 65 64 |pedef LO|NG Fixed|
|00005500| 3b 09 2f 2a 20 41 20 66 | 69 78 65 64 2d 70 6f 69 |;./* A f|ixed-poi|
|00005510| 6e 74 20 76 61 6c 75 65 | 2c 20 31 36 20 62 69 74 |nt value|, 16 bit|
|00005520| 73 20 74 6f 20 74 68 65 | 20 6c 65 66 74 20 0a 58 |s to the| left .X|
|00005530| 09 09 09 20 2a 20 6f 66 | 20 74 68 65 20 70 6f 69 |... * of| the poi|
|00005540| 6e 74 20 61 6e 64 20 31 | 36 20 74 6f 20 74 68 65 |nt and 1|6 to the|
|00005550| 20 72 69 67 68 74 2e 20 | 41 20 46 69 78 65 64 20 | right. |A Fixed |
|00005560| 0a 58 09 09 09 20 2a 20 | 69 73 20 61 20 6e 75 6d |.X... * |is a num|
|00005570| 62 65 72 20 6f 66 20 32 | 31 36 74 68 73 2c 20 69 |ber of 2|16ths, i|
|00005580| 2e 65 2e 20 36 35 35 33 | 36 74 68 73 2e 20 2a 2f |.e. 6553|6ths. */|
|00005590| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 55 6e 69 74 |.X.X#def|ine Unit|
|000055a0| 79 20 30 78 31 30 30 30 | 30 4c 09 2f 2a 20 55 6e |y 0x1000|0L./* Un|
|000055b0| 69 74 79 20 3d 20 46 69 | 78 65 64 20 31 2e 30 20 |ity = Fi|xed 1.0 |
|000055c0| 3d 20 6d 61 78 69 6d 75 | 6d 20 76 6f 6c 75 6d 65 |= maximu|m volume|
|000055d0| 09 2a 2f 0a 58 0a 58 2f | 2a 20 73 43 6f 6d 70 72 |.*/.X.X/|* sCompr|
|000055e0| 65 73 73 69 6f 6e 3a 20 | 43 68 6f 69 63 65 20 6f |ession: |Choice o|
|000055f0| 66 20 63 6f 6d 70 72 65 | 73 73 69 6f 6e 20 61 6c |f compre|ssion al|
|00005600| 67 6f 72 69 74 68 6d 20 | 61 70 70 6c 69 65 64 20 |gorithm |applied |
|00005610| 74 6f 20 74 68 65 20 73 | 61 6d 70 6c 65 73 09 2a |to the s|amples.*|
|00005620| 2f 20 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 73 43 |/ .X.X#d|efine sC|
|00005630| 6d 70 4e 6f 6e 65 20 20 | 20 20 20 20 20 30 09 2f |mpNone | 0./|
|00005640| 2a 20 6e 6f 74 20 63 6f | 6d 70 72 65 73 73 65 64 |* not co|mpressed|
|00005650| 09 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 73 43 6d |.*/.X#de|fine sCm|
|00005660| 70 46 69 62 44 65 6c 74 | 61 20 20 20 31 09 2f 2a |pFibDelt|a 1./*|
|00005670| 20 46 69 62 6f 6e 61 63 | 63 69 2d 64 65 6c 74 61 | Fibonac|ci-delta|
|00005680| 20 65 6e 63 6f 64 69 6e | 67 20 28 41 70 70 65 6e | encodin|g (Appen|
|00005690| 64 69 78 20 43 29 20 2a | 2f 0a 58 09 2f 2a 20 43 |dix C) *|/.X./* C|
|000056a0| 61 6e 20 62 65 20 6d 6f | 72 65 20 6b 69 6e 64 73 |an be mo|re kinds|
|000056b0| 20 69 6e 20 74 68 65 20 | 66 75 74 75 72 65 2e 09 | in the |future..|
|000056c0| 2a 2f 0a 58 0a 58 74 79 | 70 65 64 65 66 20 73 74 |*/.X.Xty|pedef st|
|000056d0| 72 75 63 74 20 7b 0a 58 | 09 55 4c 4f 4e 47 20 6f |ruct {.X|.ULONG o|
|000056e0| 6e 65 53 68 6f 74 48 69 | 53 61 6d 70 6c 65 73 2c |neShotHi|Samples,|
|000056f0| 09 2f 2a 20 23 20 73 61 | 6d 70 6c 65 73 20 69 6e |./* # sa|mples in|
|00005700| 20 74 68 65 20 68 69 67 | 68 20 6f 63 74 61 76 65 | the hig|h octave|
|00005710| 20 31 2d 73 68 6f 74 20 | 70 61 72 74 20 2a 2f 0a | 1-shot |part */.|
|00005720| 58 20 20 20 20 20 20 20 | 20 72 65 70 65 61 74 48 |X | repeatH|
|00005730| 69 53 61 6d 70 6c 65 73 | 2c 09 2f 2a 20 23 20 73 |iSamples|,./* # s|
|00005740| 61 6d 70 6c 65 73 20 69 | 6e 20 74 68 65 20 68 69 |amples i|n the hi|
|00005750| 67 68 20 6f 63 74 61 76 | 65 20 72 65 70 65 61 74 |gh octav|e repeat|
|00005760| 20 70 61 72 74 20 2a 2f | 0a 58 20 20 20 20 20 20 | part */|.X |
|00005770| 20 20 73 61 6d 70 6c 65 | 73 50 65 72 48 69 43 79 | sample|sPerHiCy|
|00005780| 63 6c 65 3b 09 2f 2a 20 | 23 20 73 61 6d 70 6c 65 |cle;./* |# sample|
|00005790| 73 2f 63 79 63 6c 65 20 | 69 6e 20 68 69 67 68 20 |s/cycle |in high |
|000057a0| 6f 63 74 61 76 65 2c 20 | 65 6c 73 65 20 30 20 20 |octave, |else 0 |
|000057b0| 20 2a 2f 0a 58 09 55 57 | 4f 52 44 20 73 61 6d 70 | */.X.UW|ORD samp|
|000057c0| 6c 65 73 50 65 72 53 65 | 63 3b 09 2f 2a 20 64 61 |lesPerSe|c;./* da|
|000057d0| 74 61 20 73 61 6d 70 6c | 69 6e 67 20 72 61 74 65 |ta sampl|ing rate|
|000057e0| 09 2a 2f 0a 58 09 55 42 | 59 54 45 20 63 74 4f 63 |.*/.X.UB|YTE ctOc|
|000057f0| 74 61 76 65 2c 09 09 2f | 2a 20 23 20 6f 63 74 61 |tave,../|* # octa|
|00005800| 76 65 73 20 6f 66 20 77 | 61 76 65 66 6f 72 6d 73 |ves of w|aveforms|
|00005810| 09 2a 2f 20 0a 58 09 73 | 43 6f 6d 70 72 65 73 73 |.*/ .X.s|Compress|
|00005820| 69 6f 6e 3b 09 09 2f 2a | 20 64 61 74 61 20 63 6f |ion;../*| data co|
|00005830| 6d 70 72 65 73 73 69 6f | 6e 20 74 65 63 68 6e 69 |mpressio|n techni|
|00005840| 71 75 65 20 75 73 65 64 | 09 2a 2f 0a 58 09 46 69 |que used|.*/.X.Fi|
|00005850| 78 65 64 20 76 6f 6c 75 | 6d 65 3b 09 09 2f 2a 20 |xed volu|me;../* |
|00005860| 70 6c 61 79 62 61 63 6b | 20 76 6f 6c 75 6d 65 20 |playback| volume |
|00005870| 66 72 6f 6d 20 30 20 74 | 6f 20 55 6e 69 74 79 20 |from 0 t|o Unity |
|00005880| 28 66 75 6c 6c 0a 58 09 | 20 09 09 09 20 2a 20 76 |(full.X.| ... * v|
|00005890| 6f 6c 75 6d 65 29 2e 20 | 4d 61 70 20 74 68 69 73 |olume). |Map this|
|000058a0| 20 76 61 6c 75 65 20 69 | 6e 74 6f 20 74 68 65 20 | value i|nto the |
|000058b0| 6f 75 74 70 75 74 0a 58 | 09 20 09 09 09 20 2a 20 |output.X|. ... * |
|000058c0| 68 61 72 64 77 61 72 65 | 27 73 20 64 79 6e 61 6d |hardware|'s dynam|
|000058d0| 69 63 20 72 61 6e 67 65 | 2e 09 2a 2f 0a 58 09 7d |ic range|..*/.X.}|
|000058e0| 20 56 6f 69 63 65 38 48 | 65 61 64 65 72 3b 0a 58 | Voice8H|eader;.X|
|000058f0| 0a 58 23 64 65 66 69 6e | 65 20 49 44 5f 4e 41 4d |.X#defin|e ID_NAM|
|00005900| 45 20 4d 61 6b 65 49 44 | 28 27 4e 27 2c 20 27 41 |E MakeID|('N', 'A|
|00005910| 27 2c 20 27 4d 27 2c 20 | 27 45 27 29 0a 58 2f 2a |', 'M', |'E').X/*|
|00005920| 20 4e 41 4d 45 20 63 68 | 75 6e 6b 20 63 6f 6e 74 | NAME ch|unk cont|
|00005930| 61 69 6e 73 20 61 20 43 | 48 41 52 5b 5d 2c 20 74 |ains a C|HAR[], t|
|00005940| 68 65 20 76 6f 69 63 65 | 27 73 20 6e 61 6d 65 2e |he voice|'s name.|
|00005950| 09 2a 2f 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 49 |.*/.X.X#|define I|
|00005960| 44 5f 43 6f 70 79 72 69 | 67 68 74 20 4d 61 6b 65 |D_Copyri|ght Make|
|00005970| 49 44 28 27 28 27 2c 20 | 27 63 27 2c 20 27 29 27 |ID('(', |'c', ')'|
|00005980| 2c 20 27 20 27 29 0a 58 | 2f 2a 20 22 28 63 29 20 |, ' ').X|/* "(c) |
|00005990| 22 20 63 68 75 6e 6b 20 | 63 6f 6e 74 61 69 6e 73 |" chunk |contains|
|000059a0| 20 61 20 43 48 41 52 5b | 5d 2c 20 74 68 65 20 46 | a CHAR[|], the F|
|000059b0| 4f 52 4d 27 73 20 63 6f | 70 79 72 69 67 68 74 20 |ORM's co|pyright |
|000059c0| 6e 6f 74 69 63 65 2e 09 | 2a 2f 0a 58 0a 58 23 64 |notice..|*/.X.X#d|
|000059d0| 65 66 69 6e 65 20 49 44 | 5f 41 55 54 48 20 4d 61 |efine ID|_AUTH Ma|
|000059e0| 6b 65 49 44 28 27 41 27 | 2c 20 27 55 27 2c 20 27 |keID('A'|, 'U', '|
|000059f0| 54 27 2c 20 27 48 27 29 | 0a 58 2f 2a 20 41 55 54 |T', 'H')|.X/* AUT|
|00005a00| 48 20 63 68 75 6e 6b 20 | 63 6f 6e 74 61 69 6e 73 |H chunk |contains|
|00005a10| 20 61 20 43 48 41 52 5b | 5d 2c 20 74 68 65 20 61 | a CHAR[|], the a|
|00005a20| 75 74 68 6f 72 27 73 20 | 6e 61 6d 65 2e 09 2a 2f |uthor's |name..*/|
|00005a30| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 49 44 5f 41 |.X.X#def|ine ID_A|
|00005a40| 4e 4e 4f 20 4d 61 6b 65 | 49 44 28 27 41 27 2c 20 |NNO Make|ID('A', |
|00005a50| 27 4e 27 2c 20 27 4e 27 | 2c 20 27 4f 27 29 0a 58 |'N', 'N'|, 'O').X|
|00005a60| 2f 2a 20 41 4e 4e 4f 20 | 63 68 75 6e 6b 20 63 6f |/* ANNO |chunk co|
|00005a70| 6e 74 61 69 6e 73 20 61 | 20 43 48 41 52 5b 5d 2c |ntains a| CHAR[],|
|00005a80| 20 61 75 74 68 6f 72 27 | 73 20 74 65 78 74 20 61 | author'|s text a|
|00005a90| 6e 6e 6f 74 61 74 69 6f | 6e 73 2e 09 2a 2f 0a 58 |nnotatio|ns..*/.X|
|00005aa0| 0a 58 23 64 65 66 69 6e | 65 20 49 44 5f 41 54 41 |.X#defin|e ID_ATA|
|00005ab0| 4b 20 4d 61 6b 65 49 44 | 28 27 41 27 2c 20 27 54 |K MakeID|('A', 'T|
|00005ac0| 27 2c 20 27 41 27 2c 20 | 27 4b 27 29 0a 58 23 64 |', 'A', |'K').X#d|
|00005ad0| 65 66 69 6e 65 20 49 44 | 5f 52 4c 53 45 20 4d 61 |efine ID|_RLSE Ma|
|00005ae0| 6b 65 49 44 28 27 52 27 | 2c 20 27 4c 27 2c 20 27 |keID('R'|, 'L', '|
|00005af0| 53 27 2c 20 27 45 27 29 | 0a 58 0a 58 74 79 70 65 |S', 'E')|.X.Xtype|
|00005b00| 64 65 66 20 73 74 72 75 | 63 74 20 7b 0a 58 09 55 |def stru|ct {.X.U|
|00005b10| 57 4f 52 44 20 64 75 72 | 61 74 69 6f 6e 3b 09 2f |WORD dur|ation;./|
|00005b20| 2a 20 73 65 67 6d 65 6e | 74 20 64 75 72 61 74 69 |* segmen|t durati|
|00005b30| 6f 6e 20 69 6e 20 6d 69 | 6c 6c 69 73 65 63 6f 6e |on in mi|llisecon|
|00005b40| 64 73 2c 20 3e 20 30 09 | 2a 2f 0a 58 09 46 69 78 |ds, > 0.|*/.X.Fix|
|00005b50| 65 64 20 64 65 73 74 3b | 09 2f 2a 20 64 65 73 74 |ed dest;|./* dest|
|00005b60| 69 6e 61 74 69 6f 6e 20 | 76 6f 6c 75 6d 65 20 66 |ination |volume f|
|00005b70| 61 63 74 6f 72 09 2a 2f | 0a 58 09 7d 20 45 47 50 |actor.*/|.X.} EGP|
|00005b80| 6f 69 6e 74 3b 0a 58 0a | 58 2f 2a 20 41 54 41 4b |oint;.X.|X/* ATAK|
|00005b90| 20 61 6e 64 20 52 4c 53 | 45 20 63 68 75 6e 6b 73 | and RLS|E chunks|
|00005ba0| 20 63 6f 6e 74 61 69 6e | 20 61 6e 20 45 47 50 6f | contain| an EGPo|
|00005bb0| 69 6e 74 5b 5d 2c 20 70 | 69 65 63 65 77 69 73 65 |int[], p|iecewise|
|00005bc0| 2d 6c 69 6e 65 61 72 20 | 65 6e 76 65 6c 6f 70 65 |-linear |envelope|
|00005bd0| 2e 20 2a 2f 0a 58 2f 2a | 20 54 68 65 20 65 6e 76 |. */.X/*| The env|
|00005be0| 65 6c 6f 70 65 20 64 65 | 66 69 6e 65 73 20 61 20 |elope de|fines a |
|00005bf0| 66 75 6e 63 74 69 6f 6e | 20 6f 66 20 74 69 6d 65 |function| of time|
|00005c00| 20 72 65 74 75 72 6e 69 | 6e 67 20 46 69 78 65 64 | returni|ng Fixed|
|00005c10| 20 76 61 6c 75 65 73 2e | 20 49 74 27 73 0a 58 20 | values.| It's.X |
|00005c20| 2a 20 75 73 65 64 20 74 | 6f 20 73 63 61 6c 65 20 |* used t|o scale |
|00005c30| 74 68 65 20 6e 6f 6d 69 | 6e 61 6c 20 76 6f 6c 75 |the nomi|nal volu|
|00005c40| 6d 65 20 73 70 65 63 69 | 66 69 65 64 20 69 6e 20 |me speci|fied in |
|00005c50| 74 68 65 20 56 6f 69 63 | 65 38 48 65 61 64 65 72 |the Voic|e8Header|
|00005c60| 2e 20 20 2a 2f 0a 58 0a | 58 23 64 65 66 69 6e 65 |. */.X.|X#define|
|00005c70| 20 49 44 5f 42 4f 44 59 | 20 4d 61 6b 65 49 44 28 | ID_BODY| MakeID(|
|00005c80| 27 42 27 2c 20 27 4f 27 | 2c 20 27 44 27 2c 20 27 |'B', 'O'|, 'D', '|
|00005c90| 59 27 29 0a 58 0a 58 74 | 79 70 65 64 65 66 20 63 |Y').X.Xt|ypedef c|
|00005ca0| 68 61 72 61 63 74 65 72 | 20 42 59 54 45 3b 09 2f |haracter| BYTE;./|
|00005cb0| 2a 20 38 20 62 69 74 20 | 73 69 67 6e 65 64 20 6e |* 8 bit |signed n|
|00005cc0| 75 6d 62 65 72 2c 20 2d | 31 32 38 20 74 68 72 6f |umber, -|128 thro|
|00005cd0| 75 67 68 20 31 32 37 2e | 09 2a 2f 0a 58 0a 58 2f |ugh 127.|.*/.X.X/|
|00005ce0| 2a 20 42 4f 44 59 20 63 | 68 75 6e 6b 20 63 6f 6e |* BODY c|hunk con|
|00005cf0| 74 61 69 6e 73 20 61 20 | 42 59 54 45 5b 5d 2c 20 |tains a |BYTE[], |
|00005d00| 61 72 72 61 79 20 6f 66 | 20 61 75 64 69 6f 20 64 |array of| audio d|
|00005d10| 61 74 61 20 73 61 6d 70 | 6c 65 73 2e 09 2a 2f 0a |ata samp|les..*/.|
|00005d20| 58 0a 58 38 53 56 58 20 | 52 65 67 75 6c 61 72 20 |X.X8SVX |Regular |
|00005d30| 45 78 70 72 65 73 73 69 | 6f 6e 0a 58 0a 58 48 65 |Expressi|on.X.XHe|
|00005d40| 72 65 27 73 20 61 20 72 | 65 67 75 6c 61 72 20 65 |re's a r|egular e|
|00005d50| 78 70 72 65 73 73 69 6f | 6e 20 73 75 6d 6d 61 72 |xpressio|n summar|
|00005d60| 79 20 6f 66 20 74 68 65 | 20 46 4f 52 4d 20 38 53 |y of the| FORM 8S|
|00005d70| 56 58 20 73 79 6e 74 61 | 78 2e 20 54 68 69 73 20 |VX synta|x. This |
|00005d80| 0a 58 63 6f 75 6c 64 20 | 62 65 20 61 6e 20 49 46 |.Xcould |be an IF|
|00005d90| 46 20 66 69 6c 65 20 6f | 72 20 70 61 72 74 20 6f |F file o|r part o|
|00005da0| 66 20 6f 6e 65 2e 0a 58 | 0a 58 38 53 56 58 09 3a |f one..X|.X8SVX.:|
|00005db0| 3a 3d 20 22 46 4f 52 4d | 22 20 23 7b 09 22 38 53 |:= "FORM|" #{."8S|
|00005dc0| 56 58 22 20 56 48 44 52 | 20 5b 4e 41 4d 45 5d 20 |VX" VHDR| [NAME] |
|00005dd0| 5b 43 6f 70 79 72 69 67 | 68 74 5d 20 5b 41 55 54 |[Copyrig|ht] [AUT|
|00005de0| 48 5d 20 41 4e 4e 4f 2a | 0a 58 09 09 5b 41 54 41 |H] ANNO*|.X..[ATA|
|00005df0| 4b 5d 20 5b 52 4c 53 45 | 5d 20 42 4f 44 59 20 7d |K] [RLSE|] BODY }|
|00005e00| 0a 58 0a 58 56 48 44 52 | 09 3a 3a 3d 20 22 56 48 |.X.XVHDR|.::= "VH|
|00005e10| 44 52 22 20 23 7b 20 56 | 6f 69 63 65 38 48 65 61 |DR" #{ V|oice8Hea|
|00005e20| 64 65 72 09 7d 0a 58 4e | 41 4d 45 09 3a 3a 3d 20 |der.}.XN|AME.::= |
|00005e30| 22 4e 41 4d 45 22 20 23 | 7b 20 43 48 41 52 2a 09 |"NAME" #|{ CHAR*.|
|00005e40| 7d 20 5b 30 5d 0a 58 43 | 6f 70 79 72 69 67 68 74 |} [0].XC|opyright|
|00005e50| 09 3a 3a 3d 20 22 28 63 | 29 20 22 20 23 7b 20 43 |.::= "(c|) " #{ C|
|00005e60| 48 41 52 2a 09 7d 20 5b | 30 5d 0a 58 41 55 54 48 |HAR*.} [|0].XAUTH|
|00005e70| 09 3a 3a 3d 20 22 41 55 | 54 48 22 20 23 7b 20 43 |.::= "AU|TH" #{ C|
|00005e80| 48 41 52 2a 09 7d 20 5b | 30 5d 0a 58 41 4e 4e 4f |HAR*.} [|0].XANNO|
|00005e90| 09 3a 3a 3d 20 22 41 4e | 4e 4f 22 20 23 7b 20 43 |.::= "AN|NO" #{ C|
|00005ea0| 48 41 52 2a 09 7d 20 5b | 30 5d 0a 58 0a 58 41 54 |HAR*.} [|0].X.XAT|
|00005eb0| 41 4b 09 3a 3a 3d 20 22 | 41 54 41 4b 22 20 23 7b |AK.::= "|ATAK" #{|
|00005ec0| 20 45 47 50 6f 69 6e 74 | 2a 09 7d 0a 58 52 4c 53 | EGPoint|*.}.XRLS|
|00005ed0| 45 09 3a 3a 3d 20 22 52 | 4c 53 45 22 20 23 7b 20 |E.::= "R|LSE" #{ |
|00005ee0| 45 47 50 6f 69 6e 74 2a | 09 7d 0a 58 42 4f 44 59 |EGPoint*|.}.XBODY|
|00005ef0| 09 3a 3a 3d 20 22 46 4f | 52 4d 22 20 23 7b 20 42 |.::= "FO|RM" #{ B|
|00005f00| 59 54 45 2a 09 7d 20 5b | 30 5d 0a 58 0a 58 54 68 |YTE*.} [|0].X.XTh|
|00005f10| 65 20 74 6f 6b 65 6e 20 | 22 23 22 20 72 65 70 72 |e token |"#" repr|
|00005f20| 65 73 65 6e 74 73 20 61 | 20 63 6b 53 69 7a 65 20 |esents a| ckSize |
|00005f30| 4c 4f 4e 47 20 63 6f 75 | 6e 74 20 6f 66 20 74 68 |LONG cou|nt of th|
|00005f40| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 7b 62 72 61 |e follow|ing {bra|
|00005f50| 63 65 64 7d 20 0a 58 64 | 61 74 61 20 62 79 74 65 |ced} .Xd|ata byte|
|00005f60| 73 2e 20 45 2e 67 2e 20 | 61 20 56 48 44 52 27 73 |s. E.g. |a VHDR's|
|00005f70| 20 22 23 22 20 73 68 6f | 75 6c 64 20 65 71 75 61 | "#" sho|uld equa|
|00005f80| 6c 20 73 69 7a 65 6f 66 | 28 56 6f 69 63 65 38 48 |l sizeof|(Voice8H|
|00005f90| 65 61 64 65 72 29 2e 20 | 4c 69 74 65 72 61 6c 20 |eader). |Literal |
|00005fa0| 0a 58 69 74 65 6d 73 20 | 61 72 65 20 73 68 6f 77 |.Xitems |are show|
|00005fb0| 6e 20 69 6e 20 22 71 75 | 6f 74 65 73 22 2c 20 5b |n in "qu|otes", [|
|00005fc0| 73 71 75 61 72 65 20 62 | 72 61 63 6b 65 74 20 69 |square b|racket i|
|00005fd0| 74 65 6d 73 5d 20 61 72 | 65 20 6f 70 74 69 6f 6e |tems] ar|e option|
|00005fe0| 61 6c 2c 20 0a 58 61 6e | 64 20 22 2a 22 20 6d 65 |al, .Xan|d "*" me|
|00005ff0| 61 6e 73 20 30 20 6f 72 | 20 6d 6f 72 65 20 72 65 |ans 0 or| more re|
|00006000| 70 6c 69 63 61 74 69 6f | 6e 73 2e 20 41 20 73 6f |plicatio|ns. A so|
|00006010| 6d 65 74 69 6d 65 73 2d | 6e 65 65 64 65 64 20 70 |metimes-|needed p|
|00006020| 61 64 20 62 79 74 65 20 | 0a 58 69 73 20 73 68 6f |ad byte |.Xis sho|
|00006030| 77 6e 20 61 73 20 22 5b | 30 5d 22 2e 0a 58 0a 58 |wn as "[|0]"..X.X|
|00006040| 41 63 74 75 61 6c 6c 79 | 2c 20 74 68 65 20 6f 72 |Actually|, the or|
|00006050| 64 65 72 20 6f 66 20 63 | 68 75 6e 6b 73 20 69 6e |der of c|hunks in|
|00006060| 20 61 20 46 4f 52 4d 20 | 38 53 56 58 20 69 73 20 | a FORM |8SVX is |
|00006070| 6e 6f 74 20 61 73 20 73 | 74 72 69 63 74 20 61 73 |not as s|trict as|
|00006080| 20 74 68 69 73 20 0a 58 | 72 65 67 75 6c 61 72 20 | this .X|regular |
|00006090| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 6e 64 69 63 |expressi|on indic|
|000060a0| 61 74 65 73 2e 20 54 68 | 65 20 70 72 6f 70 65 72 |ates. Th|e proper|
|000060b0| 74 79 20 63 68 75 6e 6b | 73 20 56 48 44 52 2c 20 |ty chunk|s VHDR, |
|000060c0| 4e 41 4d 45 2c 20 43 6f | 70 79 72 69 67 68 74 2c |NAME, Co|pyright,|
|000060d0| 20 0a 58 61 6e 64 20 41 | 55 54 48 20 6d 61 79 20 | .Xand A|UTH may |
|000060e0| 61 63 74 75 61 6c 6c 79 | 20 61 70 70 65 61 72 20 |actually| appear |
|000060f0| 69 6e 20 61 6e 79 20 6f | 72 64 65 72 20 61 73 20 |in any o|rder as |
|00006100| 6c 6f 6e 67 20 61 73 20 | 74 68 65 79 20 61 6c 6c |long as |they all|
|00006110| 20 70 72 65 63 65 64 65 | 20 0a 58 74 68 65 20 42 | precede| .Xthe B|
|00006120| 4f 44 59 20 63 68 75 6e | 6b 2e 20 54 68 65 20 6f |ODY chun|k. The o|
|00006130| 70 74 69 6f 6e 61 6c 20 | 64 61 74 61 20 63 68 75 |ptional |data chu|
|00006140| 6e 6b 73 20 41 4e 4e 4f | 2c 20 41 54 41 4b 2c 20 |nks ANNO|, ATAK, |
|00006150| 61 6e 64 20 52 4c 53 45 | 20 64 6f 6e 27 74 20 0a |and RLSE| don't .|
|00006160| 58 68 61 76 65 20 74 6f | 20 70 72 65 63 65 64 65 |Xhave to| precede|
|00006170| 20 74 68 65 20 42 4f 44 | 59 20 63 68 75 6e 6b 2e | the BOD|Y chunk.|
|00006180| 20 41 6e 64 20 6f 66 20 | 63 6f 75 72 73 65 2c 20 | And of |course, |
|00006190| 6e 65 77 20 6b 69 6e 64 | 73 20 6f 66 20 63 68 75 |new kind|s of chu|
|000061a0| 6e 6b 73 20 0a 58 6d 61 | 79 20 61 70 70 65 61 72 |nks .Xma|y appear|
|000061b0| 20 69 6e 73 69 64 65 20 | 61 20 46 4f 52 4d 20 38 | inside |a FORM 8|
|000061c0| 53 56 58 20 69 6e 20 74 | 68 65 20 66 75 74 75 72 |SVX in t|he futur|
|000061d0| 65 2e 0a 58 0a 58 0c 0a | 58 41 70 70 65 6e 64 69 |e..X.X..|XAppendi|
|000061e0| 78 20 42 2e 20 38 53 56 | 58 20 45 78 61 6d 70 6c |x B. 8SV|X Exampl|
|000061f0| 65 0a 58 0a 58 48 65 72 | 65 27 73 20 61 20 62 6f |e.X.XHer|e's a bo|
|00006200| 78 20 64 69 61 67 72 61 | 6d 20 66 6f 72 20 61 20 |x diagra|m for a |
|00006210| 73 69 6d 70 6c 65 20 65 | 78 61 6d 70 6c 65 20 63 |simple e|xample c|
|00006220| 6f 6e 74 61 69 6e 69 6e | 67 20 74 68 65 20 74 68 |ontainin|g the th|
|00006230| 72 65 65 20 6f 63 74 61 | 76 65 20 0a 58 42 4f 44 |ree octa|ve .XBOD|
|00006240| 59 20 73 68 6f 77 6e 20 | 65 61 72 6c 69 65 72 20 |Y shown |earlier |
|00006250| 69 6e 20 46 69 67 75 72 | 65 20 32 2e 0a 58 0a 58 |in Figur|e 2..X.X|
|00006260| 20 20 20 20 20 09 2b 2d | 2d 2d 2d 2d 2d 2d 2d 2d | .+-|--------|
|00006270| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2b 20 20 20 0a 58 |--------|--+ .X|
|00006290| 20 20 20 20 20 09 7c 27 | 46 4f 52 4d 27 09 09 33 | .|'|FORM'..3|
|000062a0| 36 32 20 20 09 09 20 20 | 20 20 7c 20 0a 58 20 20 |62 .. | | .X |
|000062b0| 20 20 20 20 09 2b 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | .+--|--------|
|000062c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2b 20 20 20 0a 58 20 |--------|-+ .X |
|000062e0| 20 20 20 20 20 09 7c 27 | 38 53 56 58 27 09 09 09 | .|'|8SVX'...|
|000062f0| 09 20 20 20 20 7c 20 20 | 20 20 20 0a 58 20 20 20 |. | | .X |
|00006300| 20 20 20 09 2b 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | .+---|--------|
|00006310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006320| 2d 2d 2d 2d 2d 2d 2d 2d | 2b 20 20 20 0a 58 20 20 |--------|+ .X |
|00006330| 20 20 20 20 09 7c 20 20 | 2b 2d 2d 2d 2d 2d 2d 2d | .| |+-------|
|00006340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006350| 2d 2d 2d 2d 2d 2d 2b 20 | 20 7c 20 20 20 0a 58 20 |------+ | | .X |
|00006360| 20 20 20 20 20 09 7c 20 | 20 7c 27 56 48 44 52 27 | .| | |'VHDR'|
|00006370| 09 09 32 30 20 20 20 20 | 20 20 20 7c 20 20 7c 20 |..20 | | | |
|00006380| 0a 58 20 20 20 20 20 20 | 09 7c 20 20 7c 32 34 2c |.X |.| |24,|
|00006390| 31 36 2c 38 2c 31 30 30 | 30 30 2c 33 2c 30 2c 31 |16,8,100|00,3,0,1|
|000063a0| 2e 30 09 20 7c 20 20 7c | 20 20 20 0a 58 20 20 20 |.0. | || .X |
|000063b0| 20 20 20 09 7c 20 20 2b | 2d 2d 2d 2d 2d 2d 2d 2d | .| +|--------|
|000063c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000063d0| 2d 2d 2d 2d 2d 2b 20 20 | 7c 20 20 20 0a 58 20 20 |-----+ || .X |
|000063e0| 20 20 20 20 09 7c 20 20 | 2b 2d 2d 2d 2d 2d 2d 2d | .| |+-------|
|000063f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.